• 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.

[JASS] Height problems

Status
Not open for further replies.
Level 11
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

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:
Status
Not open for further replies.
Top