• 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.

Detect Players in region

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
is it possible to detects in players are in a region, or have left a region to make an event happen.

Eg boss fight - all players die, reset boss
 
You can use a boolean variable (true/false) and use it like this:
  • Tr1
  • Events
    • Unit - A unit enters Region 001 <gen>
  • Conditions
    • ((Owner of (Triggering unit))'s Controller) Equal to User
  • Actions
    • Set Entered[Player number of (Triggering player)] = True
  • Tr2
  • Events
    • Unit - A unit leaves Region 001 <gen>
  • Conditions
    • ((Owner of (Triggering unit))'s Controller) Equal to User
  • Actions
    • Set Entered[Player number of (Triggering player)] = False
 
Level 10
Joined
Apr 3, 2006
Messages
535
does Unit - A unit leaves Region work if a unit dies and leaves that way or only if they physicaly walk off the region?
 
Status
Not open for further replies.
Top