- 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.
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
-
Conditions
-
Or - Any (Conditions) are true
-
If - Conditions