• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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.
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