Method Global:GetPlayersInWorld [-] [+]

Returns a table with all the current Players in the world

Does not return players that may be teleporting or otherwise not on any map.

enum TeamId
{
    TEAM_ALLIANCE = 0,
    TEAM_HORDE = 1,
    TEAM_NEUTRAL = 2
};

Synopsis

worldPlayers = GetPlayersInWorld( team )

worldPlayers = GetPlayersInWorld( team, onlyGM )

Arguments

TeamId team (TEAM_NEUTRAL)

Optional check team of the Player, Alliance, Horde or Neutral (All).

boolean onlyGM (false)

Optional check if GM only.

Returns

table worldPlayers
See method description.

Generated on 11/04/2018
©2016 - Eluna Lua Engine