Hi im trying to made a passive which will work like knockback but instead of only knockbacking the target it will throw it up in the air. I have already the trigger but he doesnt change the units height pls help
-
Rake
-
Events
-
Unit - A unit is attacked
-
-
Conditions
-
(Unit-type of (Attacking unit)) Equal to Shaman
-
(Random integer number between 1 and 10) Equal to 1
-
-
Actions
-
Set Shaman = (Attacking unit)
-
Set RakeTarget = (Attacked unit)
-
Set LoopCounter = 0
-
Unit - Add classification of Eine air-unit to RakeTarget
-
Unit - Remove classification of Eine land-unit from RakeTarget
-
Animation - Play Shaman's victory animation
-
Trigger - Turn on Rakemove <gen>
-
-
-
Rakemove
-
Events
-
Zeit - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
Set ShamanLoc = (Position of Shaman)
-
Set RakeLoc[1] = (Position of RakeTarget)
-
Set RakeLoc[2] = (RakeLoc[1] offset by 5.00 towards (Angle from ShamanLoc to RakeLoc[1]) degrees)
-
Set RakeHight[1] = (Current flying height of RakeTarget)
-
Set RakeHight[2] = ((Current flying height of Target) + 100.00)
-
Unit - Move RakeTarget instantly to RakeLoc[2]
-
Animation - Change RakeTarget flying height to RakeHight[2] at 0.00
-
Custom script: call RemoveLocation(udg_ShamanLoc)
-
Custom script: call RemoveLocation(udg_RakeLoc[1])
-
Custom script: call RemoveLocation(udg_RakeLoc[2])
-
Set LoopCounter = (LoopCounter + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
IF Conditions
-
LoopCounter equal to 45
-
-
THEN Actions
-
Animation - Change RakeTarget flying height to (Default flying height of RakeTarget) at 0.00
-
Unit - Remove classification of Eine Luft-Einheit from RakeTarget
-
Unit - Add classification of Eine Land-Einheit to RakeTarget
-
Trigger - Turn off (This trigger)
-
-
ELSE Actions
-
-
-
Last edited: