• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Observer selection event

Status
Not open for further replies.
Level 7
Joined
May 30, 2013
Messages
210
Hello dears,

As you might know, there is a gui event that`ll make a trigger fire when a player selects an unit; like this

  • Events
    • Player - Player 1 (Red) Selects a unit
the thing that`s keeping me up now, is; this doesn`t work for observer players. (observers selecting stuff don`t fire the trigger)

I`ve already tried googling around, but didn`t find anything useful, so I figured to ask here for some enlightenment

<3, Sela
 
Level 18
Joined
Apr 5, 2011
Messages
343
Hi,
I know this is a necro thread, but I tried searching the Hive for "Observer selection" and this is the only thing that shows up.

Through a bit of a trial, I found that these can be selected by checking the (integer of the) team: for observer and referees, it is -1. Normal teams are what they are, starting 0 (i.e. lobby team minus 1).

This helped me a lot in my mod just now, so hoping someone else will find it useful too :)
 
Status
Not open for further replies.
Top