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

Detecting if a unit is on water

Status
Not open for further replies.
Level 15
Joined
Oct 29, 2012
Messages
1,474
  • Actions
    • Set TempPoint1 = (Position of (Triggering unit))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Terrain pathing at TempPoint1 of type Amphibious Pathing is off) Equal to False
      • Then - Actions
      • Else - Actions
If it is swimming then the unit is amphibious :D
Or Check if the unit has started the effect of Swimming Ability
 
Status
Not open for further replies.
Top