- Joined
- Jul 3, 2004
- Messages
- 334
THE FLYING TRICK[highlight]DEPRECATED[/code]
» "How to Give a unit the ability to fly" by Magtheridon96 is the latest standard
DifficultyEasy - 3/10
RequirementsWorld Editor
Some knowledge of the Object and Trigger Editors
- Open the World Editor.
- Go to the object editor and create two spells: one based off of Metamorphosis and the other based off of Shockwave.
- Name the Metamorphosis spell "Fly Trick" and the Shockwave spell "Jump".
- Change the tooltips to whatever you want, then disable ALL DAMAGE PROPERTIES in the Shockwave spell, change everything that has to do with range AoE and other stuff to 0. In other words: the spell "Jump" is referred to as a dummy spell.
- Make the Alternate Unit Form for the Fly Trick spell a Gryphon Rider.
- Open the trigger editor.
- Delete the Map Initialization trigger and make a trigger named "Jump".
- Trigger Code:
-
Jump
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Jump
-
Actions
- Unit - Add Fly Trick to (Casting unit)
- Unit - Remove Fly Trick 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 500.00
- Wait 0.90 seconds
- Animation - Change (Triggering unit) flying height to 0.00 at 1500.00
- Wait 0.90 seconds
- Unit - Turn collision for (Casting unit) On
-
Events
-
Jump
- Give the ability "Jump" to a unit.
NOTE: DO NOT GIVE "Fly Trick" TO ANY UNIT: METAMORPHOSIS CAN CAUSE ERRORS IN MAPS WHEN SET TO A DIFFERENT UNIT! YOU COULD GET A FATAL ERROR RESULTING IN LOSS OF DATA!
Conclusion:
- Once you set the ability to the unit and remove it instantly, you can control it's flying height within that trigger.
Last edited by a moderator: