function Trig_Battlegrounds_setting_Groups_Actions takes nothing returns nothing
local unit u
set u = GetTrainedUnit()
call GroupAddUnit( Battlegrounds_Group_Player[0], u )
endfunction
//===========================================================================
function InitTrig_Battlegrounds_setting_Groups takes nothing returns nothing
set gg_trg_Battlegrounds_setting_Groups = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Battlegrounds_setting_Groups, gg_unit_u00J_0085, EVENT_UNIT_TRAIN_FINISH )
call TriggerAddAction( gg_trg_Battlegrounds_setting_Groups, function Trig_Battlegrounds_setting_Groups_Actions )
endfunction