• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,258
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