How to create a (unit/s) in (some point) every (...) second/s if a (specific structure) is not destroyed and make the (unit/s) go to (some point) right when they're created?
this trigger will check every 5 sec if the spawning pool is alive
if the spawning pool is alive than it creates a zergling and order it to attack move towards a point (attack move will let the unit attack enemys it comes across in its path)
if the spawing pool is dead it will turn the trigger off
(Spawning Pool [125.50, 129.50] is alive) == true
Then
Unit - Create 1 Zergling for player 15 at (Center of Spawn Region) facing (Random angle) degrees (No Options)
Unit - Order (Last created unit) to ( Attack targeting (Center of Move region)) (Replace Existing Orders)
Else
Trigger - Turn (Current trigger) Off
I just don't know how to add this:(Spawning Pool [125.50, 129.50] is alive) == true
Choose [If Then Else] under General
right click [if] and add element, choose [comparison]
click the parantheses on the left, then choose [unit is alive]
select your unit, then make it equal [true] by clicking Value and checking the True box
How to create a (unit/s) in (some point) every (...) second/s if a (specific structure) is not destroyed and make the (unit/s) go to (some point) right when they're created?
one of the more simple triggers to ask.....
this trigger will check every 5 sec if the spawning pool is alive
if the spawning pool is alive than it creates a zergling and order it to attack move towards a point (attack move will let the unit attack enemys it comes across in its path)
if the spawing pool is dead it will turn the trigger off
@Jackolas: Go I've done all till this:
(Spawning Pool [125.50, 129.50] is alive) == true
Then
Unit - Create 1 Zergling for player 15 at (Center of Spawn Region) facing (Random angle) degrees (No Options)
Unit - Order (Last created unit) to ( Attack targeting (Center of Move region)) (Replace Existing Orders)
Else
Trigger - Turn (Current trigger) Off
I just don't know how to add this: (Spawning Pool [125.50, 129.50] is alive) == true
Can you please explain?
@Hypernester: Go
Choose [If Then Else] under General right click [if] and add element, choose [comparison] click the parantheses on the left, then choose [unit is alive] select your unit, then make it equal [true] by clicking Value and checking the True box
what cbasz95 says
Thank you very much! Have a nice day! (hurray!)