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

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