HailCommi
New Member
- Reaction score
- 15
I didnt post this in the JASS forum cuz I dont think it has anything to do with it being JASS.
This portion of the trigger suppose to convert the triggering unit of a (begins the effect of an ability) event from a Ground type to a Flying type, then increase the fly height graphic at +5 per loop tick. However, when I try it out, nothing happens. I know the trigger is running because I've tried texting players from inside the loop and I saw it execute 25 times. So I'm wondering if any1 could shed some light on this.
btw, that TriggerSleepAction doesnt wait for 0.01. Seems like theres a minimum time that a TriggerSleepAction must wait for. Is there any way to go around this?
Thanks in advance
Code:
local unit JumpUnitTemp
local integer JumpCounterTemp
set JumpUnitTemp = GetTriggerUnit()
set JumpCounterTemp = 1
call UnitRemoveTypeBJ( UNIT_TYPE_GROUND, JumpUnitTemp )
call UnitAddTypeBJ( UNIT_TYPE_FLYING, JumpUnitTemp )
loop
exitwhen JumpCounterTemp > 25
call SetUnitFlyHeightBJ( JumpUnitTemp, ( GetUnitFlyHeight(JumpUnitTemp) + 5.00 ), 0.00 )
call TriggerSleepAction( 0.01 )
set JumpCounterTemp = JumpCounterTemp + 1
endloop
This portion of the trigger suppose to convert the triggering unit of a (begins the effect of an ability) event from a Ground type to a Flying type, then increase the fly height graphic at +5 per loop tick. However, when I try it out, nothing happens. I know the trigger is running because I've tried texting players from inside the loop and I saw it execute 25 times. So I'm wondering if any1 could shed some light on this.
btw, that TriggerSleepAction doesnt wait for 0.01. Seems like theres a minimum time that a TriggerSleepAction must wait for. Is there any way to go around this?
Thanks in advance