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

Event "Turn Trigger On"

Status
Not open for further replies.
Level 3
Joined
Feb 18, 2017
Messages
31
Hey guys,

i have a really annoying problem at the moment and i just can`t find a solution.

Basicly, i have a trigger that spawns a number of units every 30 seconds at a region. This trigger initially off when map has loaded. Then i made a second trigger that will turn the spawn trigger on but the units spawn really strange.

They do spawn every 30 seconds but the first time they dont wait for 30 seconds. They spawn after 20 or 25 seconds.

Why is it and how can i avoid it? I tried with the action "Wait 30 seconds" but it doesnt fix the problem.
 
Level 16
Joined
Mar 25, 2016
Messages
1,327
If you use the event "every 30 seconds", there is an internal timer that expires every 30 seconds. If the trigger is turned on, when the timer expires the trigger will run.
The timer itself is not stopped, if the trigger is turned off. If you turn the trigger on at 17 seconds, the trigger will still run at 30 seconds.

You could use a custom timer and pause it instead of turing off the trigger.
 
Status
Not open for further replies.
Top