SupremeRuler
Member
- Reaction score
- 1
For some reason, it will only create 2 footmen if I delete Point2 then reset it.
Also, I think deleting & resetting Point is creating some slight issues but not 100% sure of this.
Also, I think deleting & resetting Point is creating some slight issues but not 100% sure of this.
Code:
Setting Terrain
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set Point = (Random point in Border Left <gen>)
Unit - Create 1 Footman for Player 1 (Red) at Point facing Default building facing degrees
For each (Integer A) from 1 to 15, do (Actions)
Loop - Actions
Set Real[0] = 0.00
Set Real[1] = 45.00
Set Real[2] = 90.00
Set Real[3] = 270.00
Set Real[4] = 315.00
Set Point2 = (Point offset by 300.00 towards Real[(Random integer number between 0 and 4)] degrees)
Custom script: call RemoveLocation(udg_Point)
Set Point = Point2
Game - Display to (All players) the text: (String(Real[(Random integer number between 0 and 4)]))
Unit - Create 1 Footman for Player 1 (Red) at Point2 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Point2)