This page is under construction
Archives/bf1942/levels/3rd_Solomon_Sea.rfa
bf1942/levels/3rd_Solomon_Sea/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 DestroyCVAllied
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName AlliedFleet
ObjectTemplate.ObjectiveName AlliedFleet
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1


ObjectTemplate.create ANDCompositeObjective Composite
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner01
ObjectTemplate.setObjectiveDelay 3.0
ObjectTemplate.setTeam 1

ObjectTemplate.create DestroyTargetObjective DestroyCVAxis
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName AxisFleet
ObjectTemplate.ObjectiveName AxisFleet
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 2

ObjectTemplate.create ANDCompositeObjective Composite2
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner07
ObjectTemplate.setObjectiveDelay 3.0
ObjectTemplate.setTeam 2

rem ============== ObjectTemplate for the objects to be destoryed ================

rem if v_arg1 == host


ObjectTemplate.create ObjectSpawner ObjectiveSpawner01
ObjectTemplate.setObjectTemplate 2 AlliedFleet_DummyPCO
ObjectTemplate.setObjectTemplate 1 AlliedFleet_DummyPCO
ObjectTemplate.SpawnDelay 99999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.holdObject 1
ObjectTemplate.TimeToLive 99999
ObjectTemplate.Distance 99999
ObjectTemplate.DamageWhenLost 0
ObjectTemplate.teamOnVehicle 1

ObjectTemplate.create ObjectSpawner ObjectiveSpawner07
ObjectTemplate.setObjectTemplate 2 AxisFleet_DummyPCO
ObjectTemplate.setObjectTemplate 1 AxisFleet_DummyPCO
ObjectTemplate.SpawnDelay 99999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.holdObject 1
ObjectTemplate.TimeToLive 99999
ObjectTemplate.Distance 99999
ObjectTemplate.DamageWhenLost 0
ObjectTemplate.teamOnVehicle 1


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


ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner01
ObjectTemplate.setObjectTemplate 1 DestroyCVAllied
ObjectTemplate.setObjectTemplate 2 DestroyCVAllied
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 2

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner07
ObjectTemplate.setObjectTemplate 1 DestroyCVAxis
ObjectTemplate.setObjectTemplate 2 DestroyCVAxis
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 1


ObjectTemplate.create ObjectSpawner AlliedANDCompositeObjectiveSpawner
ObjectTemplate.setObjectTemplate 1 Composite
ObjectTemplate.setObjectTemplate 2 Composite
ObjectTemplate.setTeam 2

ObjectTemplate.create ObjectSpawner AxisANDCompositeObjectiveSpawner
ObjectTemplate.setObjectTemplate 1 Composite2
ObjectTemplate.setObjectTemplate 2 Composite2
ObjectTemplate.setTeam 1

rem endIf