• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Changing Flying Height Problem

Status
Not open for further replies.
Hi people =P
Here I am to bother you a little more xD
JASS:
    set Fenix = CreateUnit(Player(0), 'u007', 0.00, 0.00, 90.00)
    // Don't worry about players and coordinates xD
    call SetUnitVertexColor(Fenix, 255,255,255,204)
    call SetUnitPathing(Fenix, false)
    call UnitAddAbility(Fenix, 'Amrf')
    call UnitRemoveAbility(Fenix, 'Amrf')
    call SetUnitFlyHeight(Fenix, 500,1)
    call UnitApplyTimedLife(Fenix,'BTLF',1.00)

The unit u007 has movement type = None. Should this piece of code work?

Thanks!
Hossomi-sama
 
Then I must have done something wrong with the unit... It does not do anything except change the unit's color and add the expiration timer.

Is there any problem if I change the unit's maximum pitch angle (or roll angle, dunno XD)? 'cause my intention is to make a phoenix look like arising from the floor (Fênix is Phoenix in portuguese xD)

I've asked for a custom model but I wasn't so lucky xD

Thank ya!
Hossomi
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
It is working, it is changing height, but at the rate from 0-500 over 500 seconds (I think). The rate is basicly the speed at which the model moves up, setting it equal to the height means it moves up over 1 second. A number of 500000 should make it instantly move up.
 
Status
Not open for further replies.
Top