• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] A thing I can't figure out.

What trigger is fastest? First or Second?

  • First one

    Votes: 8 100.0%
  • Second one

    Votes: 0 0.0%

  • Total voters
    8
Status
Not open for further replies.
Level 19
Joined
Aug 16, 2007
Messages
881
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:

  • 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)
^Thats a trigger without a loop.

  • 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)
^Thats a trigger with a loop.

And now I want to know which trigger is the fastest? :S
 
Status
Not open for further replies.
Top