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

How do I make units look like they are jumping?

Status
Not open for further replies.
Level 2
Joined
May 29, 2008
Messages
22
Hmm well I might not know how to do this, and I havnt tested it either. but wouldn't the basis be that , make a region at the ramp ,
Unit enters region
Unit equal to Demon hunter (or whatever your unit is)
Remove

Another trigger:
Unit enters region equal to Demon hunter (or..)
Create a (make a new custom unit starting from a demon hunter, type of path: Flying or levitating, and heigh (how ever high you want him to jump) Call this unit example: Demon hunter 2) pointing - which ever degrese your dm2 is pointing at then when the dm2 enters region (landing spot) remove dm2 and same thing creating your dm again..

Hopefully this should work. Or not since i havnt tested it, but the trigger is something in that style.
 
Level 11
Joined
Jun 21, 2007
Messages
505
Use the following triggers, World Editorer:
This trigger when Demon Hunter starts jumping.
  • Events:
    • Unit - a unit enters ramp <gen>
  • Conditions:
    • Unit Type of (tiggering unit) equal to Demon Hunter
  • Actions:
    • Set DemonHunterIsFlying (Boolean) = True
Use the trigger above to stop dh from flying, just change the action.
Use the trigger below when dh flies and to get him stopped. I'll assume that the maximum height dh can reach while jumping is 300.
  • Events:
    • Time - Every 0.01 seconds
  • Conditions:
    • DemonHunterIsFlying equal to True
  • Actions:
    • Unit - move dh instantly to (position of dh, with polar offset)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • DemonHuntersHeight (Integer) Equal to 300.00
      • Then - Actions
        • Set DemonHunterHasToFall (Boolean) = True
      • Else - Actions
        • Do nothing
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • DemonHunterHasToFall (Boolean) equal to False
      • Then - Actions
        • Set DemonHuntersHeight (Integer) = DemonHuntersHeight + 1
        • animation - set unit's height to DemonHuntersHeight
      • Else - Actions
        • Set DemonHuntersHeight (Integer) = DemonHuntersHeight - 1
        • animation - set unit's height to DemonHuntersHeight
        • If DemonHuntersHeight Equal to 0.00 then do (Set DemonHunterIsFlying = False)
 
Level 17
Joined
May 6, 2008
Messages
1,598
Hi there.
View attachment Add height.w3x
Ready for copy and paste :)

While in game type "height" and the footman will fly!

While in game type "ground" and the footman will go to the ground.

Events could easily be changed. Ex: Unit enters region then just do these actions.
 
Last edited:
Level 11
Joined
Jun 21, 2007
Messages
505
animation - set unit's height to DemonHuntersHeight

I carnt find this one :zip:

It's the thing with variables, you enter Edit Variables window, create a variable called DemonHuntersHeight and choose it's type as Integer. You can store integer numbers in that variables for later use in the game. And you don't need to type anything...
And it's not animation - set unit's height, it's animation - change unit's height, it's a thing with "height" word , just look for it.
 
Status
Not open for further replies.
Top