KvickaN
TH.net Regular
- Reaction score
- 24
Can someone make this work? I want the triggering unit to be thrown up in the air for a little moment.
I took this from jumpmove.w3x
It worked fine in the test map but not here.
Original:
Mine:
I attached the map where i got the trigger from and mine.
I took this from jumpmove.w3x
It worked fine in the test map but not here.
Original:
Code:
Melee Initialization
Events
Map initialization
Conditions
Actions
Set Plyr_FH = (Current flying height of Footman 0000 <gen>)
Set Plyr_Gravity = 0.30
Set Plyr_Jumping = False
Set Plyr_JP = 20.00
Set Plyr_JS = 0.00
Code:
Jump
Events
Time - Every 0.01 seconds of game time
Conditions
Plyr_Jumping Equal to True
Actions
Set Plyr_JS = (Plyr_JS - Plyr_Gravity)
Unit - Move Footman 0000 <gen> instantly to tempPoint, facing moveAngle degrees
Animation - Change Footman 0000 <gen> flying height to ((Current flying height of Footman 0000 <gen>) + Plyr_JS) at 0.00
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current flying height of Footman 0000 <gen>) Less than or equal to 5.00
Then - Actions
Animation - Change Footman 0000 <gen> flying height to Plyr_FH at 0.00
Set Plyr_Jumping = False
Else - Actions
Code:
pushup
Events
Unit - A unit Begins casting an ability
Conditions
Actions
Set Plyr_Jmp_to = (Target point of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Plyr_Jumping Equal to False
Then - Actions
Set Plyr_JS = Plyr_JP
Set Plyr_Jumping = True
Set moveAngle = (Angle from (Position of (Triggering unit)) to Plyr_Jmp_to)
Set moveX = ((X of Plyr_Jmp_to) - (X of (Position of Footman 0000 <gen>)))
Set moveY = ((Y of Plyr_Jmp_to) - (Y of (Position of Footman 0000 <gen>)))
Set Plyr_XMoveDist = (moveX / 44.00)
Set Plyr_YMoveDist = (moveY / 44.00)
Else - Actions
Do nothing
Mine:
Code:
Melee Initialization
Events
Map initialization
Conditions
Actions
Set Plyr_FH = (Current flying height of (Triggering unit))
Set Plyr_Gravity = 0.30
Set Plyr_Jumping = False
Set Plyr_JP = 20.00
Set Plyr_JS = 0.00
Code:
Jump
Events
Time - Every 0.01 seconds of game time
Conditions
Plyr_Jumping Equal to True
Actions
Set Plyr_JS = (Plyr_JS - Plyr_Gravity)
Unit - Move (Triggering unit) instantly to tempPoint, facing moveAngle degrees
Animation - Change (Triggering unit) flying height to ((Current flying height of (Triggering unit)) + Plyr_JS) at 0.00
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current flying height of (Triggering unit)) Less than or equal to 5.00
Then - Actions
Animation - Change (Triggering unit) flying height to Plyr_FH at 0.00
Set Plyr_Jumping = False
Else - Actions
Code:
pushup
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Jump
Actions
Set Plyr_Jmp_to = (Target point of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Plyr_Jumping Equal to False
Then - Actions
Set Plyr_JS = Plyr_JP
Set Plyr_Jumping = True
Set moveAngle = (Angle from (Position of (Triggering unit)) to Plyr_Jmp_to)
Set moveX = ((X of Plyr_Jmp_to) - (X of (Position of (Triggering unit))))
Set moveY = ((Y of Plyr_Jmp_to) - (Y of (Position of (Triggering unit))))
Set Plyr_XMoveDist = (moveX / 44.00)
Set Plyr_YMoveDist = (moveY / 44.00)
Else - Actions
Do nothing
I attached the map where i got the trigger from and mine.