I come to you to ask for your assistance in a problem I am encountering.
I'm not sure what it is, but my jumpers are sick .
Whenever I jump from this jumper:
In single player, it jumps perfectly fine...
When testing with others, It jumps probably half the height.
My assumptions of what it could be:
My jumper isn't MUI?
The hill is somehow affecting the jump?
Vexorian's map optimizer somehow screwes it up?
Heres my jumper:
Code: Select all
function Trig_Jumper_Conditions takes nothing returns boolean
if(not(IsUnitInGroup(GetTriggerUnit(),udg_H) == true))then
return false
endif
return true
endfunction
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( GetTriggerUnit(), 500.00, 500.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 400.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 300.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 200.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 500.00, 100.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 100.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 200.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 300.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 400.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 2.00, 500.00 )
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeight( GetTriggerUnit(), 0, 500.00 )
endif
endfunction
function InitTrig_Jumper takes nothing returns nothing
set gg_trg_Jumper = CreateTrigger( )
call TriggerAddCondition( gg_trg_Jumper, Condition( function Trig_Jumper_Conditions ) )
call TriggerAddAction( gg_trg_Jumper, function Trig_Jumper_Actions )
endfunction