This page is under construction
Archives/bf1942/Levels/Eagles_Nest.rfa
bf1942/Levels/Eagles_Nest/AI.con
if v_arg1 == host

rem ************** LEVEL SPECIFIC AI SETTINGS ***************************

aiSettings.setWorldMapSize 1024 1024

rem ********************** START THE AI *********************************

rem *** Init AI using current settings ****
ai.init 2

rem *** Strategic map dimension, MUST BE DONE BEFORE CREATING SAI! ***
ai.saiMapXDimension 64
ai.saiMapYDimension 64

rem *** Create Strategic AI ***
ai.createSAI

rem *** Enabled or disabled as default ***
ai.saiEnable 1
rem game.showAIstats 1

endif

run AIPathFinding.con v_arg1

run AI/StrategicAreas.con v_arg1

rem *** Load and set strategies for each side ***


run ai/conditions.con v_arg1
run ai/prerequisites.con v_arg1
run ai/Strategies.con v_arg1

if v_arg1 == host
ai.addSAIStrategy 1 breakOut
ai.addSAIStrategy 1 hold
ai.addSAIStrategy 1 single
ai.addSAIStrategy 1 double

ai.addSAIStrategy 2 breakOut
ai.addSAIStrategy 2 hold
ai.addSAIStrategy 2 single
ai.addSAIStrategy 2 double
endIf