1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  4. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  5. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Adding Fly Height to Any Unit

Discussion in '"Graveyard"' started by orcfan32, May 20, 2005.

  1. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    THE FLYING TRICK

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

    Procedure:

    1. Open the World Editor.
    2. Go to the object editor and create two spells: one based off of Metamorphosis and the other based off of Shockwave.
    3. Name the Metamorphosis spell "Fly Trick" and the Shockwave spell "Jump".
    4. 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.
    5. Make the Alternate Unit Form for the Fly Trick spell a Gryphon Rider.
    6. Open the trigger editor.
    7. Delete the Map Initialization trigger and make a trigger named "Jump".
    8. 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

    9. 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: Nov 10, 2011
  2. Virtual Cyberspace

    Virtual Cyberspace

    Joined:
    Mar 19, 2005
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Awesome, this could be really useful.
     
  3. eXciTe

    eXciTe

    Joined:
    Aug 28, 2004
    Messages:
    486
    Resources:
    7
    Models:
    5
    Icons:
    2
    Resources:
    7
    I really dont understand ... but i will try to see with my own eyes what u mean ;)
     
  4. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    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. Shamanruler

    Shamanruler

    Joined:
    Mar 29, 2004
    Messages:
    224
    Resources:
    1
    Maps:
    1
    Resources:
    1
    you could add crow form couldnt you?
     
  6. Fubb_The_Man

    Fubb_The_Man

    Joined:
    Aug 5, 2004
    Messages:
    66
    Resources:
    0
    Resources:
    0
    thanks

    thanks this will be very helpfull for me in my maps in the future! thanks!!
     
  7. jakob

    jakob

    Joined:
    Nov 3, 2004
    Messages:
    9
    Resources:
    0
    Resources:
    0
    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. Vexorian

    Vexorian

    Joined:
    Mar 11, 2004
    Messages:
    649
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Bah, medivh's crow form is better for this, everybody knows that
     
  9. Sprite_Boi

    Sprite_Boi

    Joined:
    Mar 30, 2004
    Messages:
    66
    Resources:
    1
    Icons:
    1
    Resources:
    1
    Re: The Flying Trick

     
  10. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Yeah, I meant trigger editor, thanks!
     
  11. DurotarLord

    DurotarLord

    Joined:
    Oct 8, 2005
    Messages:
    298
    Resources:
    0
    Resources:
    0
    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. Orcbane73

    Orcbane73

    Joined:
    Nov 3, 2005
    Messages:
    27
    Resources:
    0
    Resources:
    0
    Nice

    I like it :p

    Can be really usefull for me :)

    Thanks for explaining it nicely! :)
     
  13. Why_Me

    Why_Me

    Joined:
    Nov 27, 2005
    Messages:
    8
    Resources:
    0
    Resources:
    0
    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. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    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. Why_Me

    Why_Me

    Joined:
    Nov 27, 2005
    Messages:
    8
    Resources:
    0
    Resources:
    0
    Exactly, I said to use a trigger to change the flying height.
     
  16. Virtual Cyberspace

    Virtual Cyberspace

    Joined:
    Mar 19, 2005
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Try to change the flying height of a nomal unit with triggers. You'll find it wont work without you doing one of the above triggers first.
     
  17. Why_Me

    Why_Me

    Joined:
    Nov 27, 2005
    Messages:
    8
    Resources:
    0
    Resources:
    0
    Ur right, it won't work, unless you actually give the unit a flying height. In this case, 1.
     
  18. PenKnight

    PenKnight

    Joined:
    Dec 10, 2005
    Messages:
    73
    Resources:
    0
    Resources:
    0
    Question. Must you add and remove that ability? Can't you just change the height straight off? Like when the dummy spell get clicked, the unit goes up then down but the players can move the unit where every they want it to be.
     
  19. PurplePoot

    PurplePoot

    Joined:
    Dec 14, 2005
    Messages:
    11,162
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    well, if you did, the unit could fly over cliffs and stuff all the time, and i'm sure you don't want that!
     
  20. PurplePoot

    PurplePoot

    Joined:
    Dec 14, 2005
    Messages:
    11,162
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    well, if you did, the unit could fly over cliffs and stuff all the time, and i'm sure you don't want that!

    Also, theres a bug with crow form. when you cast your jump spell( only with a hero ), if you manage to cast the crow form you are given, it will replace your hero with a level 1 hero. the old hero's stats will be added on to the new hero. Therefore-PAUSE THE UNIT