• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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