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

Move on water

Status
Not open for further replies.
Level 19
Joined
Nov 16, 2006
Messages
2,165
Change the movement type of your unit to Amphibious.

Edit: check transform abilities.

Otherwise, you could create a script/trigger which detects if the unit is at location x.
If its on water he can enter (when having the ability or item) or else not.

The unit should have Amphibious as his basic movement type though.
 
Level 4
Joined
May 16, 2010
Messages
94
The only way is to morph a unit to a another unit with amphibious movement type. So i dont think its possible to do that.
 
It's not hard, seriously. You will just need a hidden item to move in front of your unit, towards the facing of your unit. You will check if the point at the item's position is water-filled ((Terrain pathing at (Point1) of type Floatability is off) Equal to False) {Point1 = (Position of item)} and you will also check for the terrain cliff level. If the terrain cliff level is Equal to 0 (this level is applied for the default cliff level the editor has, when it creates a default map) and your unit is moving (a library might be needed here, if you don't want clumsy effects with simple coding, although it can be done just fine), then change your units fly height, to support pathing in the deep water.
 
Status
Not open for further replies.
Top