I'm using a massive trigger cluster at the beginning of the game to create thousands of units. Works great, the only problem is that the location of all the randomly generated units is always the same! This is bad since the whole point of it is to make the unit's location random.
-
Resources Spawn
-
Events
-
Conditions
-
Actions
-
Custom script: loop
-
Custom script: exitwhen 0 == udg_Resource_Integer
-
Set RandomPoint = (Random point in Relevant_Region)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain pathing at RandomPoint of type Walkability is off) Equal to False
-
-
Then - Actions
-
Unit - Create 1 Relevant_Unit for Player 9 (Gray) at RandomPoint facing Default building facing degrees
-
Set Resource_Integer = (Resource_Integer - 1)
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_RandomPoint)
-
Custom script: endloop
-
-