• 🏆 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] Flying Height Problem

Status
Not open for further replies.
Level 5
Joined
Jul 2, 2005
Messages
60
Hi folks,
well ... i spent my whole day figuring out the problem ... changing all of the code etc... and well... it needs to be that :
(unit is not null.. and the real value is correct :/

Code:
private function handleChannel takes nothing returns nothing
    local unit u = GetEnumUnit()
    local real height_new = GetUnitFlyHeight(u) + ((arrow_height/spell_channeltime)*timer_interval)
    call UnitAllowFly(u)
    call SetUnitFlyHeight(u,height_new,0.01)
endfunction

please give me some suggestions ^^
cheers,
Empiredeath
 
Level 5
Joined
Jul 2, 2005
Messages
60
Code:
private function UnitAllowFly takes unit u returns nothing
        call UnitAddAbility(u, 'Arav')
        call UnitRemoveAbility(u, 'Arav')
endfunction
i tried to let a already flying unit "fly" so ... there is something strange going on :D
 
Status
Not open for further replies.
Top