- Joined
- Nov 13, 2006
- Messages
- 1,814
i got a problem, i make a dummy unit with arrow model but idk how to lock his height.
i tryed this but dont work:
(acctually i calculate the next point height)
uc = missile unit
z1 = 256
but arrows allways going to 90 height even text show z=0 and z1=256
main goal is if i fire out the arrow from a hill example then keep it in that height and dont fall down
i tryed this but dont work:
(acctually i calculate the next point height)
uc = missile unit
z1 = 256
JASS:
set loc = GetUnitLoc(uc)
set z = GetLocationZ(loc)
call SetUnitPosition(uc, x, y)
call SetUnitFlyHeight(u,(90.00+z1-z),0)
call DisplayTextToForce( GetPlayersAll(), "z="+ R2S(z) + " z1="+ R2S(z1) )
but arrows allways going to 90 height even text show z=0 and z1=256
main goal is if i fire out the arrow from a hill example then keep it in that height and dont fall down