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.
In multistate, this method is only available in the WORLD state
Team | ID |
---|---|
ALLIANCE | 0 |
HORDE | 1 |
NEUTRAL | 2 |
Synopsis
worldPlayers = GetPlayersInWorld( team )
worldPlayers = GetPlayersInWorld( team, onlyGM )
Arguments
boolean onlyGM (false)
Optional check if GM only.
Returns
table worldPlayers
- See method description.