Enterprise Carrier AI Not Spawning

Ask questions, discuss ideas, get answers
Post Reply
=ArA=DeathFromAbove
Posts: 48
Joined: Sun Oct 18, 2009 11:38 pm

Enterprise Carrier AI Not Spawning

Post by =ArA=DeathFromAbove »

I have recently gotten ww2 extended mod up for BFV on our second server.

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
Do I need to assign the AI to team 4 for the spawn id?
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Enterprise Carrier AI Not Spawning

Post by freddy »

the Enterprise has

Code: Select all

ObjectTemplate.setAIEnterOnSpawn 1
on every spawner by default

try change it to

Code: Select all

ObjectTemplate.setAIEnterOnSpawn 0
POTAmatt
Posts: 89
Joined: Mon Dec 07, 2009 9:09 pm
Location: New Yawk

Re: Enterprise Carrier AI Not Spawning

Post by POTAmatt »

ObjectTemplate.setAIEnterOnSpawn 0

isn't exactly advisable on ships because, depending on the available spawnpoints, you could find your entire team spawning on deck with no place to go. In this case, it would help for testing because it will show you that your soldier spawns are nowhere near you airplane spawns, and for setAIEnterOnSpawn to work for bots, the soldier spawns need to be less than 10 meters from a PCO. From what you've posted, that looks to be the problem. Add a couple more soldier spawns within 10 meters of your planes.
=ArA=DeathFromAbove
Posts: 48
Joined: Sun Oct 18, 2009 11:38 pm

Re: Enterprise Carrier AI Not Spawning

Post by =ArA=DeathFromAbove »

Thanks fellas, workaround was good.
Post Reply