• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Stay time unit in region

Status
Not open for further replies.
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>
 
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
 
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.
Back
Top