• 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] 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