function Trig_Untitled_Trigger_002_Copy_Func001001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_UNDEAD) == true )
endfunction
function Trig_Untitled_Trigger_002_Copy_Func001Func003001 takes nothing returns boolean
local real h = GetLocationZ(GetUnitLoc(GetEnumUnit()))
return ( h == 179.20 )
endfunction
function Trig_Untitled_Trigger_002_Copy_Func001A takes nothing returns nothing
call DoNothing( )
call DoNothing( )
if ( Trig_Untitled_Trigger_002_Copy_Func001Func003001() ) then
call SetUnitMoveSpeed( GetEnumUnit(), ( GetUnitMoveSpeed(GetEnumUnit()) - 150.00 ) )
else
call SetUnitMoveSpeed( GetEnumUnit(), GetUnitDefaultMoveSpeed(GetEnumUnit()) )
endif
endfunction
function Trig_Untitled_Trigger_002_Copy_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Untitled_Trigger_002_Copy_Func001001002)), function Trig_Untitled_Trigger_002_Copy_Func001A )
endfunction
//===========================================================================
function InitTrig_WaterSlow takes nothing returns nothing
set gg_trg_WaterSlow = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_WaterSlow, 1 )
call TriggerAddAction( gg_trg_WaterSlow, function Trig_Untitled_Trigger_002_Copy_Actions )
endfunction