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. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    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.

[JASS] How can i change a ground unit to air w/o meta ability?

Discussion in 'Triggers & Scripts' started by Drain Pipe, Jul 1, 2005.

  1. Drain Pipe

    Drain Pipe

    Joined:
    Apr 9, 2004
    Messages:
    503
    Resources:
    1
    Models:
    1
    Resources:
    1
    The title says basically what i want to know; i'm wondering if there's JASS script that would change a unit's movement type (in my case; change from ground movement to air movement instead of turning unit's collision off. and what you're targeted as (ie: change a ground target to make it targeted only as air so gorund can't attack him)


    For some reason the .GUI that change their clasification doesn't work. (even if i add a classification it's ignored; i'm thinking that it only works for a few select classifications but not for all.)
     
  2. vile

    vile

    Joined:
    Oct 3, 2004
    Messages:
    101
    Resources:
    6
    Models:
    2
    Skins:
    1
    Maps:
    3
    Resources:
    6
    You dont need any jass or metamorphosis.

    call UnitAddAbility(YOURUNIT, 'Amrf')
    call UnitRemoveAbility(YOURUNIT, 'Amrf')

    will do the trick.
     
  3. Daelin

    Daelin

    Joined:
    Jul 20, 2004
    Messages:
    3,111
    Resources:
    41
    Models:
    22
    Icons:
    3
    Tutorials:
    16
    Resources:
    41
    Just giving Raven Form to the unit doesn't make it flying. It just allows you to modify the Art - Flying Height of the unit. Nothing else!

    As far as I know, there is no way to make that! Unless you replace the unit with a valid air unit (object editor changed means valid).

    ~Daelin
     
  4. mems

    mems

    Joined:
    May 2, 2005
    Messages:
    40
    Resources:
    3
    Icons:
    1
    Maps:
    2
    Resources:
    3
    i also seen some people are using the cluster rockets spell for a jumbing effect by changing the missle art to caster and giving a good arc to missle.

    But u will deal with 2 problems hiding the caster and moving it to location - thats the easy one

    and the units death animation couse its a missle and missle are dying when hit the target or location