Solu9
You can change this now in User CP.
- Reaction score
- 219
I have this simple spawn trigger.
What I want to know is when "For each (Integer A) from 1 to X" is used where the clean up script should be.
Example A:
Example B:
Is one of the triggers leaking or can both be used?
What I want to know is when "For each (Integer A) from 1 to X" is used where the clean up script should be.
Example A:
Trigger:
- Ambush 001
- Events
- Unit - A unit enters Spawn Ambush 001 <gen>
- Conditions
- (Unit-type of (Entering unit)) Equal to Paladin
- Actions
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- Set TempPoint_1 = (Center of Ambush 001 <gen>)
- Unit - Create 1 Runner for Neutral Hostile at TempPoint_1 facing Default building facing degrees
- Custom script: call RemoveLocation (udg_TempPoint_1)
- Loop - Actions
- Trigger - Turn off (This trigger)
- For each (Integer A) from 1 to 10, do (Actions)
- Events
Example B:
Trigger:
- Ambush 001
- Events
- Unit - A unit enters Spawn Ambush 001 <gen>
- Conditions
- (Unit-type of (Entering unit)) Equal to Paladin
- Actions
- Set TempPoint_1 = (Center of Ambush 001 <gen>)
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- Unit - Create 1 Runner for Neutral Hostile at TempPoint_1 facing Default building facing degrees
- Loop - Actions
- Custom script: call RemoveLocation (udg_TempPoint_1)
- Trigger - Turn off (This trigger)
- Events
Is one of the triggers leaking or can both be used?