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

Events


Time - Every 10.00 seconds of game time

Conditions

Actions


Custom script: set bj_wantDestroyGroup = true


Unit Group - Pick every unit in (Units of type Barracks) and do (Actions)



Loop - Actions




Set temp_point = (Position of (Picked unit))




Unit - Create 1 Footman for (Owner of (Picked unit)) at temp_point facing Default building facing degrees




Custom script: call RemoveLocation(udg_temp_point)
hey mate
Spawn
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units of type Barracks) and do (Actions)
Loop - Actions
Set temp_point = (Position of (Picked unit))
Unit - Create 1 Footman for (Owner of (Picked unit)) at temp_point facing Default building facing degrees
Custom script: call RemoveLocation(udg_temp_point)
Why not just like this:
[trigger=Barracks Spawn]Barracks Spawn
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Barracks)) and do (Actions)
Loop - Actions
Unit - Create 1 Footman for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees[/trigger]
That creates a footman every 10 second at the feet of any barracks in the map for the player who owns the barracks.
