This page is under construction
Archives/bf1942/Levels/ff_Bridge.rfa
bf1942/levels/ff_Bridge/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 766.7/690.8 771.7/695.8 50 land
aiStrategicArea.create alliedbase 765.5/907.5 770.5/912.5 50 land
aiStrategicArea.create bridge 763.7/796.5 767.7/800.5 100 land


aiStrategicArea.setActive axisbase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour bridge
aiStrategicArea.setOrderPosition Infantry 772/696
aiStrategicArea.setOrderPosition Tank 772/696
aiStrategicArea.setOrderPosition Car 772/696
aiStrategicArea.setOrderPosition Boat 772/696
aiStrategicArea.setOrderPosition LandingCraft 772/696
aiStrategicArea.setOrderPosition Amphibius 772/696
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 bridge
aiStrategicArea.setOrderPosition Infantry 770/912
aiStrategicArea.setOrderPosition Tank 770/912
aiStrategicArea.setOrderPosition Car 770/912
aiStrategicArea.setOrderPosition Boat 770/912
aiStrategicArea.setOrderPosition LandingCraft 770/912
aiStrategicArea.setOrderPosition Amphibius 770/912
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 bridge
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour axisbase
aiStrategicArea.setOrderPosition Infantry 763/796
aiStrategicArea.setOrderPosition Tank 763/796
aiStrategicArea.setOrderPosition Car 763/796
aiStrategicArea.setOrderPosition Boat 763/796
aiStrategicArea.setOrderPosition LandingCraft 763/796
aiStrategicArea.setOrderPosition Amphibius 763/796
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0



endIf