Magazette2
New Member
- Reaction score
- 3
Code:
Spawn Militia
Events
Time - Every 11.25 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Set spawnpoint = ((Picked player) start location)
Set spawnreigon = (Region centered at spawnpoint with size (384.00, 384.00))
Set Militia = (Units owned by (Picked player) of type Militia Barracks)
Set spawnbuilding = (Random unit from Militia)
If ((spawnreigon contains spawnbuilding) Equal to True) then do (Unit - Create 1 Militia for (Picked player) at spawnpoint facing Default building facing degrees) else do (Do nothing)
Custom script: call RemoveLocation (udg_spawnpoint)
Custom script: call RemoveRect (udg_spawnreigon)
Custom script: call DestroyGroup (udg_Militia)