• 🏆 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] Slide/ice help

Status
Not open for further replies.
Level 1
Joined
Aug 6, 2008
Messages
3
Hi i am new to the hive and can anyone help me find my leak in this trigger?

  • Slide
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Set tempGroup = (Units of type |c00FF0000Fire Warrior|r)
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Set tempPoint = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Terrain type at tempPoint) Equal to Icecrown Glacier - Dark Ice
              • ((Picked unit) is alive) Equal to True
            • Then - Actions
              • Unit - Move (Picked unit) instantly to (tempPoint offset by 16.00 towards (Facing of (Picked unit)) degrees)
            • Else - Actions
              • Custom script: call RemoveLocation(udg_tempPoint)
              • Custom script: call DestroyGroup(udg_tempGroup)
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
  • Slide
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Set tempGroup = (Units of type |c00FF0000Fire Warrior|r)
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set tempPoint = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Terrain type at tempPoint) Equal to Icecrown Glacier - Dark Ice
              • ((Picked unit) is alive) Equal to True
            • Then - Actions
              • Set tempPoint2 = (tempPoint offset by 16.00 towards (Facing of (Picked unit) degrees)
              • Unit - Move (Picked unit) instantly to temppoint 2 )
              • Custom script: call RemoveLocation(udg_tempPoint2)
            • Else - Actions
          • Custom script: call RemoveLocation(udg_tempPoint)
      • Custom script: call DestroyGroup(udg_tempGroup)
Fixed.
 
Status
Not open for further replies.
Top