Detecting if Player Is Observer

Status
Not open for further replies.
Level 6
Joined
Sep 19, 2005
Messages
169
So basically, if a player is an observer, it would be nice for them to have access to certain features.

I just dont know how to differentiate between an observer or a regular player. Are all observers on team 13?

Basically I just need the GUI Player Observer condition
 
Level 15
Joined
Jul 6, 2009
Messages
889
You need to check if their observer state is 1 (I think generally anything above zero?). Although there's no way to distinguish between observer and referee.

  • Untitled Trigger 002
    • Events
    • Conditions
    • Actions
      • Custom script: if GetPlayerState(whichPlayer, PLAYER_STATE_OBSERVER) == 1 then
      • Game - Display to (All players) the text: whichPlayer is an o...
      • Custom script: endif
 
Status
Not open for further replies.
Top