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

Jumping Problem

Status
Not open for further replies.
Level 4
Joined
Jul 1, 2010
Messages
60
I have made this trigger to hopefully give my unit a relatively realistic jump, but for some reason, he ends up jumping ridiculously high. Can anyone help me to get him jumping at the intended 1?


For some reason, I seem unable to copy the triggers in sc2 as text, so, the trigger turns off gravity, creates a unit at the position of the jumping unit, sets the created unit height to one, raises the jumping unit to the height at the position at the created unit, waits o.6 seconds, then turns gravity back on.
 
Level 9
Joined
Nov 4, 2007
Messages
933
Your problem may be is that your checking the height at or height of point that your unit is at, if so, you need to subtract out the base height of the map in order to get the proper height to be applied to your height offset variables. Most maps have a base height of 8.0, so if you check the height of the point at the position of unit, then it will return 8.0 + relative terrain height, which if set to your units height offset, will put it way the hell up in the air.
 
As Darkness said, most maps have a 8.0 height base, and by simply setting the height of the created unit, you are setting a single height in which the unit will jump. No matter what size hill he is on, he will always jump to that height.
Also, try just screenshotting your trigger, cutting out the part that is important, then upload it to a sight such as photobucket.com, then post it here.
 
Level 4
Joined
Jul 1, 2010
Messages
60
Thanks! That probably is my problem. Also, my maps's base height is 10. Lol, my guy is jumping 11!
 
Status
Not open for further replies.
Top