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

[JASS] Making a unit not raise flying height.

Status
Not open for further replies.
Level 11
Joined
Sep 12, 2008
Messages
657
when a unit is moving on a raised terrain, its flying height is increased,
how do i make him move with same height?

Wrong:
X-XX-XXXX
- --- -----
_^__^____

Right:
--------------
__^___^___

- = movement, ^ = raised terrain, _ = regular terrain, X = empty.

Thanks in advance.
 
Level 11
Joined
Sep 12, 2008
Messages
657
nah, its something with the location z.. it aint that hard.. i just cant find what to decrease out of what.. since location Z regular = 44, i guess it increases when you'r up on raised terrain.. but i donno.
 
Yeah, it's GetLocationZ(), why didn't you try it, since you know the answer? :]
Here:
  • Actions
    • Set Point1 = (Position of (Your unit))
    • Custom script: set udg_Z = GetLocationZ (udg_Point1)
    • Animation - Set (Your unit)'s flying height to ((Flying height of (Your unit)) - Z) at 0.00
    • Custom script: call RemoveLocation (udg_Point1)
"Z" is a real variable.
 
Status
Not open for further replies.
Top