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

Stay time unit in region

Status
Not open for further replies.
Level 5
Joined
May 21, 2011
Messages
56
ok!

when a unit stay more than 20 seconds in a region to teleport(move instantly) that unit to another region.

  • Events
    • Unit - A unit is in region <x1>
  • Conditions
    • Time elapsed by that unit is equal to 20 seconds
  • Actions
    • Move that unit instantly to region <x2>
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Ohhh...
A unit dies = leaves region, right ?
LOGIC, lol!

  • Dies
    • Events
      • Unit - A unit Dies
      • Unit - A unit leaves TeleportRegion <gen>
    • Conditions
      • ((Triggering unit) is in TeleportGroup) Equal to True
    • Actions
      • Unit Group - Remove (Triggering unit) from TeleportGroup
      • Hashtable - Clear all child hashtables of child (Key(Triggering unit)) in Hashtable
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TeleportGroup is empty) Equal to True
        • Then - Actions
          • Trigger - Turn off Interval Check <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
What I understood is, when you "die", it is automatically referred as you "leave" the region, because you "died", get it ?

Is the mechanism of the trigger works like that Maker ?

Btw, why at the initial action, you didn't set any Handle ID ?
Isn't we suppose to set Handle ID for each new Event occur ? (check my test map, you'll understand what I said)

Or am I wrong here ?

Should we not set Handle ID ?
 
Status
Not open for further replies.
Top