Like what iron eagle said, you cannot add new spawner groups in with a server-side mod. That causes a crash. Instead, you just have to add more object spawns from an existing spawner group.
e.x.
ObjectTemplate.create ObjectSpawner DestroyerSpawner
ObjectTemplate.setObjectTemplate 3 Enterprise
ObjectTemplate.setObjectTemplate 2 fletcher2
ObjectTemplate.setObjectTemplate 1 hatsuzuki
ObjectTemplate.SpawnDelay 200
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.teamOnVehicle 1
Then, add the object spawn in ObjectSpawns.con (set your own pos.):
Object.create ScoutCarSpawner
Object.absolutePosition --/--/--
Object.rotation --/--/--
Object.setTeam 3
Strangely enough, Omaha Beach has an AAgun spawner, a Fighter spawner, a Divebomber spawner, a Heavybomber spawner (B17), an Artillery spawner, and a 'Willy' spawner which is the same thing as the Scoutcar spawner, all unused in the map.
|