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

rem *** Create vehicle groups ***
aiSettings.createVehicleGroup land
aiSettings.createVehicleGroup infantry
aiSettings.createVehicleGroup any
aiSettings.createVehicleGroup sea

rem *** Add vehicles to the groups ***
aiSettings.addVehicleToVehicleGroup 0 land
aiSettings.addVehicleToVehicleGroup 1 any
aiSettings.addVehicleToVehicleGroup 2 sea
aiSettings.addVehicleToVehicleGroup 3 infantry
aiSettings.addVehicleToVehicleGroup 4 any
aiSettings.addVehicleToVehicleGroup 5 land
aiSettings.addVehicleToVehicleGroup 6 land
aiSettings.addVehicleToVehicleGroup 7 any
aiSettings.addVehicleToVehicleGroup 8 any
aiSettings.addVehicleToVehicleGroup 9 any
aiSettings.addVehicleToVehicleGroup 10 any
aiSettings.addVehicleToVehicleGroup 11 any
aiSettings.addVehicleToVehicleGroup 12 sea
aiSettings.addVehicleToVehicleGroup 13 any
aiSettings.addVehicleToVehicleGroup 14 land
aiSettings.addVehicleToVehicleGroup 15 any
aiSettings.addVehicleToVehicleGroup 16 any
aiSettings.addVehicleToVehicleGroup 17 any

rem *** Create categories ***
aiStrategicArea.createNewCategory land
aiStrategicArea.createNewCategory sea


rem *** Create strategic areas ***
aiStrategicArea.create AlliedBase 890.9/939 895.9/944 50 land
aiStrategicArea.create AxisBase 890.9/843 895.9/848 50 land
aiStrategicArea.create Center 885.9/886 895.9/896 200 land


aiStrategicArea.setActive AlliedBase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addNeighbour AxisBase
aiStrategicArea.addNeighbour Center
aiStrategicArea.setOrderPosition Infantry 896/944
aiStrategicArea.setOrderPosition Tank 896/944
aiStrategicArea.setOrderPosition Car 896/944
aiStrategicArea.setOrderPosition Boat 896/944
aiStrategicArea.setOrderPosition LandingCraft 896/944
aiStrategicArea.setOrderPosition Amphibius 896/944
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.setTakeable 1 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive AxisBase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addNeighbour AlliedBase
aiStrategicArea.addNeighbour Center
aiStrategicArea.setOrderPosition Infantry 896/848
aiStrategicArea.setOrderPosition Tank 896/848
aiStrategicArea.setOrderPosition Car 896/848
aiStrategicArea.setOrderPosition Boat 896/848
aiStrategicArea.setOrderPosition LandingCraft 896/848
aiStrategicArea.setOrderPosition Amphibius 896/848
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.setTakeable 2 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Center
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour AlliedBase
aiStrategicArea.addNeighbour AxisBase
aiStrategicArea.setOrderPosition Infantry 892/900
aiStrategicArea.setOrderPosition Tank 896/896
aiStrategicArea.setOrderPosition Car 896/896
aiStrategicArea.setOrderPosition Boat 896/896
aiStrategicArea.setOrderPosition LandingCraft 896/896
aiStrategicArea.setOrderPosition Amphibius 896/896
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0



endIf