This page is under construction
Archives/Bf1942/Levels/RC_Air.rfa
bf1942/levels/RC_Air/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 axisbase 1660.2/369.8 1670.2/379.8 50 land
aiStrategicArea.create alliedbase 354.6/1661.1 364.6/1671.1 50 land
aiStrategicArea.create island 906.5/917.4 946.5/957.4 50 land

aiLandingZone.createLandingZone CenterLanding 900/900 1097/1114 LZZMax


aiStrategicArea.setActive axisbase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour island
aiStrategicArea.setOrderPosition Infantry 1670/380
aiStrategicArea.setOrderPosition Tank 1670/380
aiStrategicArea.setOrderPosition Car 1670/380
aiStrategicArea.setOrderPosition Boat 1670/380
aiStrategicArea.setOrderPosition LandingCraft 1670/380
aiStrategicArea.setOrderPosition Amphibius 1670/380
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 alliedbase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour axisbase
aiStrategicArea.addNeighbour island
aiStrategicArea.setOrderPosition Infantry 365/1671
aiStrategicArea.setOrderPosition Tank 365/1671
aiStrategicArea.setOrderPosition Car 365/1671
aiStrategicArea.setOrderPosition Boat 365/1671
aiStrategicArea.setOrderPosition LandingCraft 365/1671
aiStrategicArea.setOrderPosition Amphibius 365/1671
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 island
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour axisbase
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.attachLandingZone CenterLanding
aiStrategicArea.addLandingZoneUnit UnarmedPlane
aiStrategicArea.setOrderPosition Infantry 946/957
aiStrategicArea.setOrderPosition Tank 946/957
aiStrategicArea.setOrderPosition Car 946/957
aiStrategicArea.setOrderPosition Boat 946/957
aiStrategicArea.setOrderPosition LandingCraft 946/957
aiStrategicArea.setOrderPosition Amphibius 946/957
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0



endIf