I am including AI in some maps, however, the following code stops AI from spawning on the Enterprise Carrier and I cant figure why unless its because the vehicles are set to team 4 and not team 2:
Code: Select all
rem ******************** Enterprise Mod **************************
rem --- Carriers with 3 Plane Spawns ----
rem --- Allied Carrier - 3 Spawns --
ObjectTemplate.active EnterpriseComplex
ObjectTemplate.removetemplate 5
ObjectTemplate.removetemplate 5
ObjectTemplate.removetemplate 5
ObjectTemplate.removetemplate 5
ObjectTemplate.removetemplate 5
ObjectTemplate.removetemplate 5
ObjectTemplate.addTemplate Enterprise_AirCraftSoldierSpawn
ObjectTemplate.setPosition 8/20.4/-68
ObjectTemplate.setRotation -90/0/0
ObjectTemplate.addTemplate Enterprise_AirCraftSoldierSpawn
ObjectTemplate.setPosition 8/20.4/-72
ObjectTemplate.setRotation -90/0/0
ObjectTemplate.addTemplate Enterprise_LcvpSoldierSpawn
ObjectTemplate.setPosition 8/20.4/-112
ObjectTemplate.setRotation -90/0/0
ObjectTemplate.addTemplate Enterprise_LcvpSoldierSpawn
ObjectTemplate.setPosition 8/20.4/-115
ObjectTemplate.setRotation -90/0/0
ObjectTemplate.addTemplate Enterprise_corsairSpawner
ObjectTemplate.setPosition 8/19.63/-47
ObjectTemplate.setRotation -30/-10/0
ObjectTemplate.addTemplate Enterprise_sbdSpawner
ObjectTemplate.setPosition 7.5/20.1/-91
ObjectTemplate.setRotation -30/-10/0
ObjectTemplate.addTemplate FletcherLcvpSpawner
ObjectTemplate.setPosition 7.5/20.1/-135
ObjectTemplate.setRotation -30/-10/0
ObjectTemplate.active Enterprise_corsairSpawner
ObjectTemplate.setObjectTemplate 1 bf109
ObjectTemplate.setObjectTemplate 4 mustang
ObjectTemplate.minSpawnDelay 8
ObjectTemplate.maxSpawnDelay 12
ObjectTemplate.TimeToLive 20
ObjectTemplate.Distance 120
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.holdObject 0
ObjectTemplate.team 4
ObjectTemplate.MaxNrOfObjectSpawned 15
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.active Enterprise_sbdSpawner
rem ObjectTemplate.setObjectTemplate 1 yak9
ObjectTemplate.setObjectTemplate 4 spitfire
ObjectTemplate.minSpawnDelay 8
ObjectTemplate.maxSpawnDelay 12
ObjectTemplate.TimeToLive 20
ObjectTemplate.Distance 120
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.holdObject 0
ObjectTemplate.team 4
ObjectTemplate.MaxNrOfObjectSpawned 15
ObjectTemplate.DamageWhenLost 10
rem ObjectTemplate.active Enterprise_LcvpSpawner
ObjectTemplate.active FletcherLcvpSpawner
rem ObjectTemplate.setObjectTemplate 1 stuka
ObjectTemplate.setObjectTemplate 4 B17
ObjectTemplate.minSpawnDelay 8
ObjectTemplate.maxSpawnDelay 12
ObjectTemplate.TimeToLive 20
ObjectTemplate.Distance 120
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.holdObject 0
ObjectTemplate.team 4
ObjectTemplate.MaxNrOfObjectSpawned 15
ObjectTemplate.damageWhenLost 10