• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Pick Random Thingy

Status
Not open for further replies.
Level 14
Joined
Jan 5, 2009
Messages
1,127
Ok. I halted my Nightmarescape project for now to work on a different one. Im making a phantom III where there are two phantoms instead of one. It has the same terrain as the map Abyss except with a few edits.
Here is the trigger.
  • Chosing Done
    • Events
      • Timer - Elapsed time is 15.0 Real Time seconds
    • Local Variables
    • Conditions
    • Actions
      • Variable - Set Phantom_1 = (Owner of (Random Living unit from RandUnitsG))
      • Variable - Set Phantom_2 = (Owner of (Random Living unit from RandUnitsG))
      • General - Repeat (Actions) forever
        • Actions
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • Phantom_1 == Phantom_2
            • Then
              • Variable - Set Phantom_2 = (Owner of (Random Living unit from RandUnitsG))
            • Else
              • General - Break
Did I do it right? I dont want it looping forever and causing me trouble.
 
Status
Not open for further replies.
Top