• 🏆 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!

[Solved] Can I make units walk faster on water ?

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 001
    • Events
      • Time - Every 0.20 seconds of game time
    • Conditions
    • Actions
      • Set p = (Position of u)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain pathing at p of type Floatability is off) Equal to False
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: is water
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Item Move Speed Bonus for u) Equal to 0
            • Then - Actions
              • Unit - Add Item Move Speed Bonus to u
            • Else - Actions
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: not water
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Item Move Speed Bonus for u) Not equal to 0
            • Then - Actions
              • Unit - Remove Item Move Speed Bonus from u
            • Else - Actions
      • Custom script: call RemoveLocation(udg_p)
For multiple units, add units into a group. Periodically pick units in the group.
 
Status
Not open for further replies.
Top