• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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