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

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

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • 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