- Joined
- Feb 27, 2019
- Messages
- 404
Hello,
In my map I have players that reported units that spawn at a different location than expected.
For example the trigger below. I set TempPoint as a global variable, the location where I will create my units. Is it possible that my global variable TempPoint is modified between my 2 calls to the function "Unit - Create" ?
- For exemple, events like "Unit enters in (Entire Map)" or "Unit is issued an order" could fire between the 2 calls ?
- Can there be any asynchronous trigger executing at the same time ?
In my map I have players that reported units that spawn at a different location than expected.
For example the trigger below. I set TempPoint as a global variable, the location where I will create my units. Is it possible that my global variable TempPoint is modified between my 2 calls to the function "Unit - Create" ?
- For exemple, events like "Unit enters in (Entire Map)" or "Unit is issued an order" could fire between the 2 calls ?
- Can there be any asynchronous trigger executing at the same time ?
-
For each (Integer A) from 1 to 4, do (Actions)
-

Loop - Actions
-


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



If - Conditions
-




(WaveNumber Equal to (Integer A)) or ((WaveNumber Equal to ((Integer A) + 4)) or (WaveNumber Equal to ((Integer A) + 8)))
-
-



Then - Actions
-




Set TempPoint = (Center of WaveCome[(Integer A)])
-




Unit - Create (5 + WaveNumber) WaveUnit[WaveNumber] for Player 11 (Dark Green) at TempPoint facing DefensePoint
-




Unit Group - Pick every unit in (Last created unit group) and do (Actions)
-





Loop - Actions
-






Unit - Order (Picked unit) to Attack-Move To DefensePoint
-
-
-




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





If - Conditions
-






ModeSingle Equal to False
-
-





Then - Actions
-






Unit - Create (5 + WaveNumber) WaveUnit[WaveNumber] for Player 11 (Dark Green) at TempPoint facing DefensePoint
-






Unit Group - Pick every unit in (Last created unit group) and do (Actions)
-







Loop - Actions
-








Unit - Order (Picked unit) to Attack-Move To DefensePoint
-
-
-
-





Else - Actions
-






Do nothing
-
-
-




Custom script: call RemoveLocation(udg_TempPoint)
-
-



Else - Actions
-




Do nothing
-
-
-
-
Last edited:





