function Trig_Animals_Spawn_Func001002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nshe', GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
endfunction
function Trig_Animals_Spawn_Func002002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'npig', GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
endfunction
function Trig_Animals_Spawn_Func003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n00D', GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
endfunction
function Trig_Animals_Spawn_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfTypeIdAll('h002'), function Trig_Animals_Spawn_Func001002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('h001'), function Trig_Animals_Spawn_Func002002 )
call ForGroupBJ( GetUnitsOfTypeIdAll('n00C'), function Trig_Animals_Spawn_Func003002 )
endfunction
//===========================================================================
function InitTrig_Animals_Spawn takes nothing returns nothing
set gg_trg_Animals_Spawn = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Animals_Spawn, 60.00 )
call TriggerAddAction( gg_trg_Animals_Spawn, function Trig_Animals_Spawn_Actions )
endfunction