note: i used ObjectTemplate.criticalDamage 50 on the willy for it to destroy itself in about 10-15 minutes so it could put out a new plane, but it seems it works better to use a deathbubble for this.
if you skip the ObjectTemplate.criticalDamage 50 or deathbubbles, it will change plane spawner when the map restarts instead.
in this example the willy is spawned high up in the air with the holdobjectline, its only used as a "dummy" for the other spawners.
Code: Select all
ObjectTemplate.Active Willy
ObjectTemplate.criticalDamage 50
ObjectTemplate.hpLostWhileCriticalDamage 0.4
ObjectTemplate.addTemplate DestroyerSpawner
ObjectTemplate.setPosition 0/-1199.7/0
ObjectTemplate.setRotation -3/-13/0
ObjectTemplate.setRandomGeometries 3
ObjectTemplate.create ObjectSpawner DestroyerSpawner1
ObjectTemplate.setObjectTemplate 2 Corsair
ObjectTemplate.setSpawnPositionOffset 0/-0.4/0
ObjectTemplate.SpawnDelay 10
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.DamageWhenLost 5
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 4
ObjectTemplate.create ObjectSpawner DestroyerSpawner2
ObjectTemplate.setObjectTemplate 2 Spitfire
ObjectTemplate.SpawnDelay 10
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 4
ObjectTemplate.create ObjectSpawner DestroyerSpawner3
ObjectTemplate.setObjectTemplate 2 Mustang
ObjectTemplate.SpawnDelay 10
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 4