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

Pathing Problems

Status
Not open for further replies.
Level 22
Joined
Jul 25, 2009
Messages
3,091
I made an ability that allows a unit to jump a short distance. I designed the coding to check if the area was pathed, or if it was taller in cliff height than the cliff height where the unit is standing.

Cliff Height 0 can't jump to Cliff Height 1 or 2, etc.

That part of the coding works, but checking if the area is pathed and denying the ability to jump there, does not.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Terrain cliff level at (Target point of ability being cast)) Greater than (Terrain cliff level at (Position of (Triggering unit)))
          • (Terrain pathing at (Target point of ability being cast) of type Walkability is off) Equal to True
          • (Terrain pathing at (Target point of ability being cast) of type Flyability is off) Equal to True
 
Status
Not open for further replies.
Top