- Joined
- Apr 6, 2008
- Messages
- 760
hi, got some problems with height its that if i change time to higher the ball goes really high and if i change distance the ball goes hit the ground to early, i use this forumla
just wondering if any i know some better way of doing this. i want the b.z to be <= 10 then the time runs out (dont post math with squares and stuff plz )
JASS:
private constant real MaxDist = 2000.
private constant real Time = 3.
set b.fulltime = Time
set b.z = 75.
set b.x = .23
set b.zx = b.fulltime*3
//in some other function
set b.zx = b.zx-b.x
set b.z = b.z+b.zx
call SetUnitFlyHeight(b.dum,b.z,0.)
just wondering if any i know some better way of doing this. i want the b.z to be <= 10 then the time runs out (dont post math with squares and stuff plz )
Last edited: