When i try to test the map makes an error and shows me that the seccond trigger was been disabled due errors
function Trig_Test2_Actions takes nothing returns nothing
call RemoveLocation(udg_Temp_Loc_2)
call RemoveLocation(udg_Temp_Loc_1)
call CreateNUnitsAtLoc( udg_Temp_Interger_2, 'n000', Player(0), udg_temp_lock_2, bj_UNIT_FACING )
call CreateNUnitsAtLoc( udg_Temp_Interger_1, 'h000', Player(0), udg_temp_lock_1, bj_UNIT_FACING )
set udg_temp_lock_1 = GetRectCenter(gg_rct_Region_000)
set udg_temp_lock_2 = GetRectCenter(gg_rct_Region_000)
endfunction
//===========================================================================
function InitTrig_Test2 takes nothing returns nothing
set gg_trg_Test2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Test2, 10.00 )
call TriggerAddAction( gg_trg_Test2, function Trig_Test2_Actions )
endfunction
//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Test1( )
call InitTrig_Test2( )
endfunction
//***************************************************************************
//*
//* Players
//*
//***************************************************************************
function InitCustomPlayerSlots takes nothing returns nothing
// Player 0
call SetPlayerStartLocation( Player(0), 0 )
call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(0), true )
call SetPlayerController( Player(0), MAP_CONTROL_USER )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_006
call SetPlayerTeam( Player(0), 0 )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -15744.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -15360.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 15360.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 14848.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -15744.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 14848.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 15360.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -15360.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCAshenvale\\DNCAshenvaleTerrain\\DNCAshenvaleTerrain.mdl", "Environment\\DNC\\DNCAshenvale\\DNCAshenvaleUnit\\DNCAshenvaleUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "AshenvaleDay" )
call SetAmbientNightSound( "AshenvaleNight" )
call SetMapMusic( "Music", true, 0 )
call CreateRegions( )
call CreateAllUnits( )
call InitBlizzard( )
call InitGlobals( )
call InitCustomTriggers( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "TRIGSTR_001" )
call SetMapDescription( "TRIGSTR_003" )
call SetPlayers( 1 )
call SetTeams( 1 )
call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )
call DefineStartLocation( 0, 12160.0, 16128.0 )
// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction