• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Looking for a condition to check for Deep water in a point

Status
Not open for further replies.
Level 14
Joined
Aug 31, 2009
Messages
775
You can just use a combination of 2 trigger conditions.

Say the point you want to check is called "TempPoint" then these conditions will work for deep water:
  • And - All Conditions are True
    • (Terrain pathing at TempPoint of type Amphibious Pathing is off) Equal to False
    • (Terrain pathing at TempPoint of type Walkability Pathing is off) Equal to True
(These are Boolean Comparisons)

This means the point is pathable to amphibious units but not pathable to ground units. Only thing that fills those two conditions is (you guessed it!) deep water.
 
Level 4
Joined
Apr 22, 2008
Messages
34
You can just use a combination of 2 trigger conditions.

Say the point you want to check is called "TempPoint" then these conditions will work for deep water:
  • And - All Conditions are True
    • (Terrain pathing at TempPoint of type Amphibious Pathing is off) Equal to False
    • (Terrain pathing at TempPoint of type Walkability Pathing is off) Equal to True
(These are Boolean Comparisons)

This means the point is pathable to amphibious units but not pathable to ground units. Only thing that fills those two conditions is (you guessed it!) deep water.

thx it worked out just as i needed it to :D. +rep.
 
Status
Not open for further replies.
Top