i need help making this trigger fire 1 time when a unit enters the location. not everytime a unit enters the location...
Events
Unit - Any Unit Enters ProtossWaterWall
Local Variables
Conditions
Actions
General - While (Conditions) are true, do (Actions)
Conditions
(Owner of (Triggering unit)) == 1
Actions
Unit - Create 4 Void Ray for player 11 at (Center of Player1) using default facing (No Options)
General - Wait 30.0 Game Time seconds
Right now if i send 3units to ProtossWaterWall (location) it will spawn (4x3) 12void rays, i only want it to spawn 4 total. any ideas?
Actions
Unit - Create 4 Void Ray for player 11 at (Center of Player1) using default facing (No Options)
Trigger - Turn (Current trigger) Off
General - Wait 30.0 Game Time seconds
Trigger - Turn (Current trigger) On
it does spawn 1 time but when i enter the area again with in 30seconds i get an error code.. not to mention HUGE lag... dont know why though~
I wonder if it's because you create units in the area that is defined in the Events of your Trigger? This would explain the lag. Try to switch your 'Create'-Trigger with your 'Trigger - Turn (Current trigger) Off'-Trigger.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
i need help making this trigger fire 1 time when a unit enters the location. not everytime a unit enters the location...
Events
Unit - Any Unit Enters ProtossWaterWall
Local Variables
Conditions
Actions
General - While (Conditions) are true, do (Actions)
Conditions
(Owner of (Triggering unit)) == 1
Actions
Unit - Create 4 Void Ray for player 11 at (Center of Player1) using default facing (No Options)
General - Wait 30.0 Game Time seconds
Right now if i send 3units to ProtossWaterWall (location) it will spawn (4x3) 12void rays, i only want it to spawn 4 total. any ideas?
@tdhsst: Go add an action that turns the trigger off.
@SoulFilcher:
but if i turn the trigger off then in 30seconds (wait time) it will not fire again...
OR can i add an action to turn trigger off then wait 30seconds action then an action turn trigger on???? lol
@tdhsst: Go Yeah, you can try something like that.
@SoulFilcher:
Actions
Unit - Create 4 Void Ray for player 11 at (Center of Player1) using default facing (No Options)
Trigger - Turn (Current trigger) Off
General - Wait 30.0 Game Time seconds
Trigger - Turn (Current trigger) On
it does spawn 1 time but when i enter the area again with in 30seconds i get an error code.. not to mention HUGE lag... dont know why though~
@tdhsst: Go
I wonder if it's because you create units in the area that is defined in the Events of your Trigger? This would explain the lag. Try to switch your 'Create'-Trigger with your 'Trigger - Turn (Current trigger) Off'-Trigger.