Spring.GetPlayerList() How to exclude spectators?
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Spring.GetPlayerList() How to exclude spectators?
This has been bugging me for some time... How do you exclude specs? For a little bit I thought that's what the active bool did, but then I realized that is for dead/alive/disconnected/etc.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Spring.GetPlayerList() How to exclude spectators?
Use Spring.GetPlayerInfo(playerID) to find out players details, including if a given playerID is currently a spectator.