function Trig_Region_1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Edem' ) ) then
return false
endif
return true
endfunction
function Trig_Region_1_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Region_001) )
endfunction
//===========================================================================
function InitTrig_Region_1 takes nothing returns nothing
set gg_trg_Region_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Region_1, gg_rct_Region_000 )
call TriggerAddCondition( gg_trg_Region_1, Condition( function Trig_Region_1_Conditions ) )
call TriggerAddAction( gg_trg_Region_1, function Trig_Region_1_Actions )
endfunction