This page is under construction
Archives/bf1942/levels/Battle_over_Britain.rfa
bf1942/levels/Battle_over_Britain/ObjectiveMode/ObjectiveSpawnerTemplates.con

rem ======== Networkable ============================

NetworkableInfo.createNewInfo ObjectiveInfo
NetworkableInfo.setPredictionMode PMNone
NetworkableInfo.setBasePriority c_NIGhostAlways

rem ================ ObjectiveTemplates =====================
rem // Axis = 1 , Allied = 2


ObjectTemplate.create DestroyTargetObjective DestroyFactory01
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName Factory01
ObjectTemplate.ObjectiveName Factory
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1

ObjectTemplate.create DestroyTargetObjective DestroyRadarTower01
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName RadarTower01
ObjectTemplate.ObjectiveName East_Harwick_RadarTower
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1

ObjectTemplate.create DestroyTargetObjective DestroyRadarTower02
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName RadarTower02
ObjectTemplate.ObjectiveName West_Harwick_RadarTower
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1

ObjectTemplate.create DestroyTargetObjective DestroyRadarTower03
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName RadarTower03
ObjectTemplate.ObjectiveName Clacton_RadarTower
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1

ObjectTemplate.create DestroyTargetObjective DestroyRadarTower04
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName RadarTower04
ObjectTemplate.ObjectiveName Felixstowe_RadarTower
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1

ObjectTemplate.create ANDCompositeObjective Composite
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner01
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner02
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner03
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner04
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner05
ObjectTemplate.setObjectiveDelay 3.0
ObjectTemplate.setTeam 1

ObjectTemplate.create TimerObjective Timer
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.TimeLimit 900.0
ObjectTemplate.setObjectiveDelay 3.0
ObjectTemplate.setTeam 2
rem ============== ObjectTemplate for the objects to be destoryed ================

rem if v_arg1 == host


ObjectTemplate.create ObjectSpawner Britain_FactorySpawner
ObjectTemplate.setObjectTemplate 1 Factory_Objective
ObjectTemplate.setObjectTemplate 2 Factory_Objective
ObjectTemplate.SpawnDelay 9999
ObjectTemplate.SpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 200

rem -----------------------------------------
rem --- Felixstowe_RadarTower_Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner Felixstowe_RadarTower_Spawner
ObjectTemplate.setObjectTemplate 1 RadarTower
ObjectTemplate.setObjectTemplate 2 RadarTower
ObjectTemplate.SpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 0
ObjectTemplate.teamOnVehicle 1

rem -----------------------------------------
rem --- Clacton_RadarTower_Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner Clacton_RadarTower_Spawner
ObjectTemplate.setObjectTemplate 1 RadarTower
ObjectTemplate.setObjectTemplate 2 RadarTower
ObjectTemplate.SpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 0
ObjectTemplate.teamOnVehicle 1

rem -----------------------------------------
rem --- East_Harwick_RadarTower_Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner East_Harwick_RadarTower_Spawner
ObjectTemplate.setObjectTemplate 1 RadarTower
ObjectTemplate.setObjectTemplate 2 RadarTower
ObjectTemplate.SpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 0
ObjectTemplate.teamOnVehicle 1

rem -----------------------------------------
rem --- West_Harwick_RadarTower_Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner West_Harwick_RadarTower_Spawner
ObjectTemplate.setObjectTemplate 1 RadarTower
ObjectTemplate.setObjectTemplate 2 RadarTower
ObjectTemplate.SpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 0
ObjectTemplate.teamOnVehicle 1


rem ================= OjectiveSpawnerTemplates =======================================


ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner01
ObjectTemplate.setObjectTemplate 1 DestroyFactory01
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 1

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner02
ObjectTemplate.setObjectTemplate 1 DestroyRadarTower01
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 1

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner03
ObjectTemplate.setObjectTemplate 1 DestroyRadarTower02
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 1

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner04
ObjectTemplate.setObjectTemplate 1 DestroyRadarTower03
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 1

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner05
ObjectTemplate.setObjectTemplate 1 DestroyRadarTower04
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 1

ObjectTemplate.create ObjectSpawner ANDCompositeObjectiveSpawner
ObjectTemplate.setObjectTemplate 1 Composite
ObjectTemplate.setTeam 1

ObjectTemplate.create ObjectSpawner TimerObjectiveSpawner
ObjectTemplate.setObjectTemplate 2 Timer
ObjectTemplate.setSpawnDelay 1
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 2

rem endIf