function Trig_JKSystemCore_Actions takes nothing returns nothing
set udg_JKS_Integer[3]=1
loop
exitwhen udg_JKS_Integer[3] > udg_JKS_Integer[2]
if ( Trig_JKSystemCore_Func001Func001C() ) then
if ( Trig_JKSystemCore_Func001Func001Func001C() ) then
set udg_JKS_temppoint[1]=GetUnitLoc(udg_JKS_J_Jumper2[udg_JKS_Integer[3]])
if ( Trig_JKSystemCore_Func001Func001Func001Func003C() ) then
set udg_JKS_J_distancetravelled[udg_JKS_Integer[3]]=( udg_JKS_J_distancetravelled[udg_JKS_Integer[3]] + udg_JKS_J_JumpSpeed2[udg_JKS_Integer[3]] )
"HERE IS THE PROBLEM"set udg_JKS_J_heightchange = ParabolaZ(udg_JKS_J_MaxHeightReached2[udg_JKS_Integer[3]] , udg_JKS_J_distance[udg_JKS_Integer[3]] , udg_JKS_J_distancetravelled[udg_JKS_Integer[3]])[/B]
set udg_JKS_temppoint[2]=PolarProjectionBJ(udg_JKS_temppoint[1] , udg_JKS_J_JumpSpeed2[udg_JKS_Integer[3]] , AngleBetweenPoints(udg_JKS_temppoint[1] , udg_JKS_J_TargetPoint2[udg_JKS_Integer[3]]))
if ( Trig_JKSystemCore_Func001Func001Func001Func003Func017C() ) then
set udg_JKS_terrainZ = GetLocationZ(udg_JKS_temppoint[2])
call SetUnitFlyHeightBJ(udg_JKS_J_Jumper2[udg_JKS_Integer[3]] , ( udg_JKS_J_heightchange - udg_JKS_terrainZ ) , 0.00)
else
call SetUnitFlyHeightBJ(udg_JKS_J_Jumper2[udg_JKS_Integer[3]] , udg_JKS_J_heightchange , 0.00)
endif
call SetUnitPositionLoc(udg_JKS_J_Jumper2[udg_JKS_Integer[3]] , udg_JKS_temppoint[2])
call RemoveLocation(udg_JKS_temppoint[2])
else
if ( Trig_JKSystemCore_Func001Func001Func001Func003Func001C() ) then
call DisplayTextToForce(GetPlayersMatching(Condition(function Trig_JKSystemCore_Func001Func001Func001Func003Func001Func001001001)) , "TRIGSTR_034")
else
endif
call SetUnitFlyHeightBJ(udg_JKS_J_Jumper2[udg_JKS_Integer[3]] , GetUnitDefaultFlyHeight(udg_JKS_J_Jumper2[udg_JKS_Integer[3]]) , 0.00)
set udg_JKS_J_distancetravelled[udg_JKS_Integer[3]]=0.00
call DestroyEffectBJ(udg_JKS_J_AttachSfx1[udg_JKS_Integer[3]])
call DestroyEffectBJ(udg_JKS_J_AttachSfx2[udg_JKS_Integer[3]])
call SetUnitPathing(udg_JKS_J_Jumper2[udg_JKS_Integer[3]] , true)
call SetUnitInvulnerable(udg_JKS_J_Jumper2[udg_JKS_Integer[3]] , false)
if ( Trig_JKSystemCore_Func001Func001Func001Func003Func008C() ) then
set udg_JKS_temppoint[4]=GetUnitLoc(udg_JKS_J_Jumper2[udg_JKS_Integer[3]])
set udg_JKS_tempgroup[1]=GetUnitsInRangeOfLocMatching(udg_JKS_J_DamageRadius2[udg_JKS_Integer[3]] , udg_JKS_temppoint[4] , Condition(function Trig_JKSystemCore_Func001Func001Func001Func003Func008Func002002003))
call ForGroupBJ(udg_JKS_tempgroup[1] , function Trig_JKSystemCore_Func001Func001Func001Func003Func008Func003A)
call RemoveLocation(udg_JKS_temppoint[4])
call DestroyGroup(udg_JKS_tempgroup[1])
else
endif
call AddSpecialEffectTargetUnitBJ(udg_JKS_J_AttachPointEndString2[udg_JKS_Integer[3]] , udg_JKS_J_Jumper2[udg_JKS_Integer[3]] , udg_JKS_J_EndSfxString2[udg_JKS_Integer[3]])
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_JKS_J_Jumper2[udg_JKS_Integer[3]]=null
set udg_JKS_Integer[1]=( udg_JKS_Integer[1] - 1 )
if ( Trig_JKSystemCore_Func001Func001Func001Func003Func013C() ) then
set udg_JKS_Integer[2]=0
call DisableTrigger(GetTriggeringTrigger())
else
endif
endif
call RemoveLocation(udg_JKS_temppoint[1])
else
endif
else
if ( Trig_JKSystemCore_Func001Func001Func002C() ) then
if ( Trig_JKSystemCore_Func001Func001Func002Func001C() ) then
set udg_JKS_temppoint[1]=GetUnitLoc(udg_JKS_K_target2[udg_JKS_Integer[3]])
set udg_JKS_temppoint[2]=PolarProjectionBJ(udg_JKS_temppoint[1] , udg_JKS_K_startspeed2[udg_JKS_Integer[3]] , udg_JKS_K_angle2[udg_JKS_Integer[3]])
if ( Trig_JKSystemCore_Func001Func001Func002Func001Func004C() ) then
set udg_JKS_tempgroup[1]=GetUnitsInRangeOfLocMatching(udg_JKS_K_CollisionRadius2[udg_JKS_Integer[3]] , udg_JKS_temppoint[2] , Condition(function Trig_JKSystemCore_Func001Func001Func002Func001Func004Func001002003))
if ( Trig_JKSystemCore_Func001Func001Func002Func001Func004Func002C() ) then
set udg_JKS_K_startspeed2[udg_JKS_Integer[3]]=0.00
call ForGroupBJ(udg_JKS_tempgroup[1] , function Trig_JKSystemCore_Func001Func001Func002Func001Func004Func002Func002A)
else
endif
call DestroyGroup(udg_JKS_tempgroup[1])
else
endif
if ( Trig_JKSystemCore_Func001Func001Func002Func001Func005C() ) then
call EnumDestructablesInCircleBJ(udg_JKS_K_TreeKillRadius2[udg_JKS_Integer[3]] , udg_JKS_temppoint[2] , function Trig_JKSystemCore_Func001Func001Func002Func001Func005Func001A)
else
endif
if ( Trig_JKSystemCore_Func001Func001Func002Func001Func006C() ) then
call AddSpecialEffectLocBJ(udg_JKS_temppoint[1] , udg_JKS_K_TrailSfxString2[udg_JKS_Integer[3]])
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(udg_JKS_K_target2[udg_JKS_Integer[3]] , udg_JKS_temppoint[2])
set udg_JKS_K_startspeed2[udg_JKS_Integer[3]]=( udg_JKS_K_startspeed2[udg_JKS_Integer[3]] - udg_JKS_K_speeddecrease2[udg_JKS_Integer[3]] )
else
set udg_JKS_K_startspeed2[udg_JKS_Integer[3]]=0.00
endif
call RemoveLocation(udg_JKS_temppoint[2])
call RemoveLocation(udg_JKS_temppoint[1])
else
call SetUnitPathing(udg_JKS_K_target2[udg_JKS_Integer[3]] , true)
set udg_JKS_K_target2[udg_JKS_Integer[3]]=null
set udg_JKS_Integer[1]=( udg_JKS_Integer[1] - 1 )
if ( Trig_JKSystemCore_Func001Func001Func002Func001Func011C() ) then
set udg_JKS_Integer[2]=0
call DisableTrigger(GetTriggeringTrigger())
else
endif
endif
else
endif
endif
set udg_JKS_Integer[3]=udg_JKS_Integer[3] + 1
endloop
endfunction