Method Global:GetPlayersOnMap [-] [+]
Returns a table with all the current Players on the states map.
Does not return players that may be teleporting or otherwise not on the map.
enum TeamId
{
TEAM_ALLIANCE = 0,
TEAM_HORDE = 1,
TEAM_NEUTRAL = 2
};
In multistate, this method is only available in the MAP state
Synopsis
mapPlayers = GetPlayersOnMap( team )
mapPlayers = GetPlayersOnMap( team, onlyGM )
Arguments
boolean onlyGM (false)
Optional check if GM only.
Returns
table mapPlayers
- See method description.