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

Need help in jump skills

Status
Not open for further replies.
Level 1
Joined
May 26, 2008
Messages
4
Hey, i wanted to make some jump skills, but now i dont know how to finish them. One of those 2 skills works, but its only some animation wishy washy(fok-icon).
The other one works partly, but not how it should.
You can choose a point where you wanna jump, and then you do jump, but not right timed, so for example you jump on reach the ground before the targeted point, or the other way round if the way is too short, so you jump in the air and there you stay and sthen you fall down.
I want that you reach the ground in the right time, but i think there i have to do something with distances and i dont know how i could do this.

I hope you can help me

(If someone can help me, pls write your triggers in GUI ;) )
 

Attachments

  • Jump skills.w3x
    10.2 KB · Views: 46
Level 3
Joined
Jul 6, 2008
Messages
42
Try this
  • Actions
    • Set startpunkt = (Position of (Triggering unit))
    • Set endpunkt = (Target point of ability being cast)
    • Set time = (((Distance between startpunkt and endpunkt) / (Current movement speed of (Triggering unit))) / 2.00)
    • Unit - Add Flytrick to (Casting unit)
    • Unit - Remove Flytrick from (Casting unit)
    • Unit - Turn collision for (Casting unit) Off
    • Unit - Order (Casting unit) to Move To (Target point of ability being cast)
    • Animation - Change (Triggering unit) flying height to 500.00 at (time x 500.00)
    • Wait time game-time seconds
    • Animation - Change (Triggering unit) flying height to 0.00 at (time x 500.00)
    • Wait time game-time seconds
    • Unit - Turn collision for (Casting unit) On
 
Level 1
Joined
May 26, 2008
Messages
4
thx, but what are those variables, time and is distance a variable?

edit: found the distance (doh, never found it :/ )
now i only need the kind of the variable time, point, real, integer or whatever

edit edit:how can i do taht : Wait time game-time seconds
 
Last edited:
Level 3
Joined
Jul 6, 2008
Messages
42
Well , try this .
Well , the most important variable is time .
distant = time X speed (movement speed of triggering unit ).
time = distant/speed ...
 

Attachments

  • Jump skills.w3x
    10.5 KB · Views: 45
Level 1
Joined
May 26, 2008
Messages
4
maaan thats cery nice, thx :D
but one last question, how do u find out that u have to write :
set flying height to >.33< *distance...?
 
Level 17
Joined
May 6, 2008
Messages
1,598
I am not clear in my head atm. Please ignore me if this is wrong.

Set flying height to Time (arithmetic) * 0.33
 
Status
Not open for further replies.
Top