Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Wave Spawn

Events


Time - Every x seconds of game time

Conditions


Conditions

Actions


Set Spawn_Area = (Where you want the units to spawn)


Set Attack_Move_Loc = (Where you want the units to attack move)


Unit - Create units... at Spawn_Area


Custom script - call RemoveLocation(udg_Spawn_Area)


-------- If you created 1 unit of that type --------


Unit - Order (Last Created Unit) to Attack-Move to Attack_Move_Loc


Custom script - call RemoveLocation(udg_Attack_Move_Loc)


-------- If you created more than 1 unit of that type --------


Custom script - set bj_wantDestroyGroup = true


Unit Group - Pick every unit in (Last Created Unit Group) to do Unit - Attack-Move to Attack_Move_Loc


Custom script - call RemoveLocation(udg_Attack_Move_Loc)
I'm pretty sure you can't use "...Order (Last Created Unit Group)..." action ?My first attempt at making a leakless trigger; tell me if I did it right, please.
Wave Spawn
Events
Time - Every x seconds of game time
Conditions
Conditions
Actions
Set Spawn_Area = (Where you want the units to spawn)
Set Attack_Move_Loc = (Where you want the units to attack move)
Unit - Create units... at Spawn_Area
Custom script - call RemoveLocation(udg_Spawn_Area)
-------- If you created 1 unit of that type --------
Unit - Order (Last Created Unit) to Attack-Move to Attack_Move_Loc
Custom script - call RemoveLocation(udg_Attack_Move_Loc)
-------- If you created more than 1 unit of that type --------
Custom script - set bj_wantDestroyGroup = true
Unit Group - Order (Last Created Unit Group) to do Unit - Attack-Move to Attack_Move_Loc
Custom script - call RemoveLocation(udg_Attack_Move_Loc)
Custom script: set bj_wantDestroyGroup = true
Custom script - set bj_wantDestroyGroup = true
I don't think it's leakless; though.
Unit - Order (Entering unit) to Attack-Move To (Center of Region 001 <gen>)
Actions

Set TempPoint = (Center of Region 001 <gen>)

Unit - Order (Entering unit) to Attack-Move To TempPoint

Custom script: call RemoveLocation(udg_TempPoint)
Conditions

(Owner of (Triggering unit)) Equal to (==) Player 2 (Blue)
The Region triggers are leaking; I know that.
He only asked for the Wave Spawning.
Custom script: call RemoveRect(udg_"VariableName")
no XD. I'm pretty new at making maps
