- Joined
- Mar 10, 2008
- Messages
- 869
I think that "desyncing" is the problem I have.
How can I make this trigger work properly on Battle.net, but keep its fly height "jump" curvature?
JASS:
function Trig_Jumper_Actions takes nothing returns nothing
local unit u=GetTriggerUnit()
local real x=GetUnitX(u)
local real y=GetUnitY(u)
if(GetUnitFlyHeight(u)<1)then
set udg_LastTerrain[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))+1] = GetTerrainType(x,y)
call SetUnitFlyHeight(u, 500.00, 500.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 500.00, 400.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 500.00, 300.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 500.00, 200.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 500.00, 100.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 2.00, 100.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 2.00, 200.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 2.00, 300.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 2.00, 400.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 2.00, 500.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight(u, 0, 500.00 )
endif
set u=null
endfunction