Warcraft III resources & community, 2003–2006 · archived

Adding Fly Height to Any Unit

23 posts
#1

Adding Fly Height to Any Unit

DEPRECATED
[h2]» "How to Give a unit the ability to fly" by Magtheridon96 is the latest standard[/h2]

THE FLYING TRICK

Easy - 3/10World Editor
Some knowledge of the Object and Trigger Editors

Procedure:

  • 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


  • 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.
#2
Awesome, this could be really useful.
#3
I really dont understand ... but i will try to see with my own eyes what u mean ;)
#4

Re: The Flying Trick

Sorry for this being a more up-to-date tutorial post right here, I hit reply instead of edit.... :roll:
#5
you could add crow form couldnt you?
#6

thanks

thanks this will be very helpfull for me in my maps in the future! thanks!!
#7
i tested that trigger and thing.. the unit is walking to the point of the "ability thing" and then he jumps.. i thought he was gonig to fly to that point or something :D
#8
Bah, medivh's crow form is better for this, everybody knows that
#9

Re: The Flying Trick

[quote="orcfan32"]THE FLYING TRICK



1. Requirements:
World Edit
Some knowledge of the object editor and OBJECT editor/[quote]
Dude you wrote object editor twice :P Also, what's the point with that thing?
#10
Yeah, I meant trigger editor, thanks!
#11
yo its easier to just do the following actions:

Actions:
*Add Crow Form to triggering unit
*Remove Crow Form from triggering unit

Use those actions instead of the meta ones. If u do that (without any waits commands between those two) u can alter a units flying height easier than useing meta.
#12

Nice

I like it :P

Can be really usefull for me :)

Thanks for explaining it nicely! :)
#13
What I want to know is, why not just change the flying height using triggers, why add all that other junk? You could just make the unit's flying height=1. The player wouldn't notice it, and you could have the same effect.
#14
You have a lot more control over the unit by triggers. If you did it like you said, then you couldn't add special effects and stuff at the right time. You can not change the flying height of a unit in-game without triggers, either.
#15
Exactly, I said to use a trigger to change the flying height.