I think I removed all the leaks here that I know of, but how do I remove location leaks? Must I remove the leaks created each time I instantly move a unit?
-
Airborne
-
Events
- Time - Every 0.01 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- JumpLength Greater than 0.00
-
Then - Actions
- Set JumpLength = (JumpLength - 12.00)
- Set Distance = (Distance - 12.00)
- Set Airheight = (Airheight + (6.00 + (0.07 x JumpLength)))
- Special Effect - Create a special effect attached to the chest of Jetpack using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move Jetpack instantly to ((Position of Jetpack) offset by 12.00 towards Angle degrees)
- Animation - Change Jetpack flying height to Airheight at 3000.00
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- JumpLength Less than or equal to 0.00
- Distance Greater than 0.00
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Set JumpLength = (JumpLength - 12.00)
- Set Distance = (Distance - 12.00)
- Set Airheight = (Airheight + (-6.00 + (0.07 x JumpLength)))
- Special Effect - Create a special effect attached to the chest of Jetpack using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move Jetpack instantly to ((Position of Jetpack) offset by 12.00 towards Angle degrees)
- Animation - Change Jetpack flying height to Airheight at 3000.00
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Airheight Less than or equal to 1.00
-
Then - Actions
- Animation - Change Jetpack flying height to 0.00 at 3000.00
- Unit - Move Jetpack instantly to LandingSpot
- Set Airheight = 0.00
- Set JumpLength = 0.00
- Set Distance = 0.00
- Set Angle = 0.00
- Unit - Turn collision for Jetpack On
- Trigger - Turn off (This trigger)
- Unit - Create 1 Dummy for (Owner of Jetpack) at (Position of Jetpack) facing Default building facing degrees
- Unit - Add Landing Damage to (Last created unit)
- Unit - Set level of Landing Damage for (Last created unit) to (Level of Jump (Hunter) for Jetpack)
- Custom script: call IssueImmediateOrder( GetLastCreatedUnit(), "stomp" )
- Special Effect - Create a special effect at LandingSpot using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Set Jetpack = No unit
- Custom script: call RemoveLocation( udg_LandingSpot )
- Unit - Remove (Last created unit) from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events