This page is under construction
Archives/bf1942/levels/SG_Boarding_Party.rfa
bf1942/levels/SG_Boarding_Party/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 axisbasetemplate 1068.9/1034.5 1082.2/1047.8 50 land
aiStrategicArea.create alliedbasetemplate 960.8/1034.1 974.1/1047.4 50 land
aiStrategicArea.create CP3Template 1025.4/956.9 1038.7/970.2 50 land
aiStrategicArea.create CP4Template 1007.3/1008.7 1020.6/1022 50 land


aiStrategicArea.setActive axisbasetemplate
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbasetemplate
aiStrategicArea.addNeighbour CP3Template
aiStrategicArea.addNeighbour CP4Template
aiStrategicArea.setOrderPosition Infantry 1082/1048
aiStrategicArea.setOrderPosition Tank 1082/1048
aiStrategicArea.setOrderPosition Car 1082/1048
aiStrategicArea.setOrderPosition Boat 1082/1048
aiStrategicArea.setOrderPosition LandingCraft 1082/1048
aiStrategicArea.setOrderPosition Amphibius 1082/1048
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 alliedbasetemplate
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour axisbasetemplate
aiStrategicArea.addNeighbour CP3Template
aiStrategicArea.addNeighbour CP4Template
aiStrategicArea.setOrderPosition Infantry 974/1047
aiStrategicArea.setOrderPosition Tank 974/1047
aiStrategicArea.setOrderPosition Car 974/1047
aiStrategicArea.setOrderPosition Boat 974/1047
aiStrategicArea.setOrderPosition LandingCraft 974/1047
aiStrategicArea.setOrderPosition Amphibius 974/1047
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive CP3Template
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour axisbasetemplate
aiStrategicArea.addNeighbour alliedbasetemplate
aiStrategicArea.addNeighbour CP4Template
aiStrategicArea.setOrderPosition Infantry 1039/970
aiStrategicArea.setOrderPosition Tank 1039/970
aiStrategicArea.setOrderPosition Car 1039/970
aiStrategicArea.setOrderPosition Boat 1039/970
aiStrategicArea.setOrderPosition LandingCraft 1039/970
aiStrategicArea.setOrderPosition Amphibius 1039/970
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive CP4Template
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour axisbasetemplate
aiStrategicArea.addNeighbour alliedbasetemplate
aiStrategicArea.addNeighbour CP3Template
aiStrategicArea.setOrderPosition Infantry 1021/1022
aiStrategicArea.setOrderPosition Tank 1021/1022
aiStrategicArea.setOrderPosition Car 1021/1022
aiStrategicArea.setOrderPosition Boat 1021/1022
aiStrategicArea.setOrderPosition LandingCraft 1021/1022
aiStrategicArea.setOrderPosition Amphibius 1021/1022
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0



endIf