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. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. The results are out! Check them out.
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. 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.

Questions about flying units

Discussion in 'World Editor Help Zone' started by Krogoth, May 16, 2013.

  1. Krogoth

    Krogoth

    Joined:
    Apr 5, 2011
    Messages:
    247
    Resources:
    0
    Resources:
    0
    1. I need to do collisions for flying units. They should interact with others the same as ground but still flying.
    (I have solution with SetTerrainPathing. Does another (better) way exist?)

    2. Here is my flying unit:
    [​IMG]
    How can I make this arc starting closer to cliff?
     
  2. Starquizer

    Starquizer

    Joined:
    Mar 3, 2006
    Messages:
    1,526
    Resources:
    6
    Maps:
    1
    Spells:
    2
    Tutorials:
    3
    Resources:
    6
    You will need the equations of projectiles. That will involve getting the terrain height, the velocity of the flying object. I guess you will have to do some wikipedia search for those equations then put the right variables in the triggers.
     
  3. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,193
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    For the flying thing, try setting the movement type to foot (or something else than fly) but then adding/removing Crow Form ability with triggers to enable flying.
     
  4. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,978
    Resources:
    17
    Spells:
    17
    Resources:
    17
    #1
    What do you meant by "interact" ?
    The flying unit will not bypass above the ground unit but instead, treat the ground unit as obstacle and the only way to move forward, is to get around the ground unit ?

    #2
    The default arc created by Blizzard is like that.
    Well, if you want that arc to start closer to the cliffs, you must trigger the ups and downs of flying units in your map by using this trigger function;
    • Animation - Change FlyingUnit flying height to FlyingHeight at Rate

    Other calculations such as getting the
    GetLocationZ
    are needed too.
     
  5. Krogoth

    Krogoth

    Joined:
    Apr 5, 2011
    Messages:
    247
    Resources:
    0
    Resources:
    0
    Flying units interact with each other like ground. Does not matter if collides with ground or not.
    So, what the formula of this arc is, if I wanna make my own?
     
  6. Starquizer

    Starquizer

    Joined:
    Mar 3, 2006
    Messages:
    1,526
    Resources:
    6
    Maps:
    1
    Spells:
    2
    Tutorials:
    3
    Resources:
    6
    Take a look at this.