- Joined
- Aug 16, 2007
- Messages
- 884
Hmm, I fooled around with World Editor today and I thought: "What is fastest? A loop with actions or instant actions?
If you don't understand:
And now I want to know which trigger is the fastest? :S
If you don't understand:
-
First
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
- Set temp_point = (Position of (Triggering unit))
- Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at temp_point facing Default building facing degrees
- Custom script: call RemoveLocation(udg_temp_point)
-
Events
-
Second
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
-
For each (Integer A) from 1 to 1, do (Actions)
-
Loop - Actions
- Set temp_point = (Position of (Triggering unit))
- Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at temp_point facing Default building facing degrees
- Custom script: call RemoveLocation(udg_temp_point)
-
Loop - Actions
-
For each (Integer A) from 1 to 1, do (Actions)
-
Events
And now I want to know which trigger is the fastest? :S