- Joined
- Dec 31, 2016
- Messages
- 320
Hi, I am quite lost in here. The trigger crashes the game and I cant find a reason why. The reason seems to lie in this condition according to my testing of the function. But I don't understand what's wrong with it.
MinY, MaxX etc. are border coordinates of a region.
Thank you for any help.
-
MinY Less than ((Y of SpawnPoint) - 128.00)
MinY, MaxX etc. are border coordinates of a region.
Thank you for any help.
-
Rock Generation
-

Events
-

Conditions
-

Actions
-


Set VariableSet SpawnPoint = (Point((X of SpawnPoint2), (Y of SpawnPoint2)))
-


Custom script: call RemoveLocation(udg_SpawnPoint2)
-


Unit - Create 1 SpawnUnit for Neutral Passive at SpawnPoint facing Default building facing degrees
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




MaxX Greater than ((X of SpawnPoint) + 128.00)
-
-



Then - Actions
-




Set VariableSet SpawnPoint2 = (Point(((X of SpawnPoint) + 128.00), (Y of SpawnPoint)))
-




Custom script: call RemoveLocation(udg_SpawnPoint)
-




Trigger - Run (This trigger) (checking conditions)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






MinY Less than ((Y of SpawnPoint) - 128.00)
-
-





Then - Actions
-






Set VariableSet SpawnPoint2 = (Point(MinX, ((Y of SpawnPoint) - 128.00)))
-






Custom script: call RemoveLocation(udg_SpawnPoint)
-






Trigger - Run (This trigger) (checking conditions)
-
-





Else - Actions
-
-
-
-
-

