• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[Trigger] a spell that make unit fly

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
>.<
So, base one ability (the activating one) off any no-target spell, and another one (the deactivating one) off another no-target spell and then use the following trigger:
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability being cast equal to *your activating ability*
  • Actions
    • Unit - Add crow form to (Triggering Unit)
    • Unit - Remove crow form from (Triggering Unit)
    • Animation - Change (Triggering Unit) flying height to 400 at 200
    • Unit - Remove *your activating ability* from (Triggering Unit)
    • Unit - Add *your deactivating ability* to (Triggering Unit)
and another one
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability being cast equal to *your deactivating ability*
  • Actions
    • Animation - Change (Triggering Unit) flying height to 0 at 200
    • Unit - Remove *your deactivating ability* from (Triggering Unit)
    • Unit - Add *your activating ability* to (Triggering Unit)
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
Or you can also change the movement type to 'Fly' while the unit will still walk and can be targeted as ground and just use Animation - change unit's flying height as mentioned above with the triggers. If you want while in the air to be with his chest and face pointing the ground, you will have to really use a crow form with alternate unit the same unit with pitch angle -460 degrees (a value that can be changed from the object editor 2 lines below Icon- Scorecreen)
 
Status
Not open for further replies.
Top