How do I?

Status
Not open for further replies.
Level 3
Joined
Oct 2, 2013
Messages
27
{Solved}How do I?

How do I make a Unit "Hero" leave a certain region after a certain amount of time say 120.00 seconds = 2 minutes and i do not see anything in the editor about moving a unit at a certain amount of time and i have tried changing it around a bit and using multiple Triggers. I'd like if you can help me thanks.
 
Last edited:
Level 9
Joined
Apr 23, 2011
Messages
527
if you want to make the hero leave exactly 2 minutes after, make a timer that starts counting down when your hero enters the region.

  • timer
    • Events
      • Unit - A unit enters region <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to unit
    • Actions
      • Set unitvar = (Entering unit)
      • Countdown Timer - Start timer as a One-shot timer that will expire in 120.00 seconds
  • timer exit
    • Events
      • Time - timer expires
    • Conditions
    • Actions
      • Unit - Move unit instantly to (Center of region exit <gen>)
      • Set unitvar = No unit
make a timer window if you want to show the time limit.
if you want to do this for every unit that gets in, you can use arrays and integers, but it's a little more trickier.
 
Status
Not open for further replies.
Top