I understand the principle of how to do it, but I'm not sure, ehh I'm, sure im coding it wrong:). But something like this should work?:

- Code: Select all
`rem *** AT25Launcher***`

ObjectTemplate.create FireArms AT25Launcher

ObjectTemplate.setNetworkableInfo PlaneFireArmInfo

ObjectTemplate.aiTemplate SupplyboxGunAI

ObjectTemplate.projectileTemplate AT25SpawnProjectile

ObjectTemplate.projectilePosition 0/0/0

ObjectTemplate.magSize 1

ObjectTemplate.numOfMag 999

ObjectTemplate.velocity 0

ObjectTemplate.autoReload 1

ObjectTemplate.reloadtime 60

ObjectTemplate.roundOfFire 1

rem ObjectTemplate.setInputFire c_PIAltFire

ObjectTemplate.addFireArmsPosition 0/0/0 0/0/0

ObjectTemplate.AmmoType 10

rem *** AT25SpawnProjectile***

ObjectTemplate.create Projectile AT25SpawnProjectile

ObjectTemplate.createNotInGrid 1

ObjectTemplate.geometry Ammobox_m1

ObjectTemplate.addTemplate AT25DummySpawner

ObjectTemplate.hasDynamicShadow 1

ObjectTemplate.setHasMobilePhysics 1

ObjectTemplate.setHasCollisionPhysics 1

ObjectTemplate.setHasResponsePhysics 1

ObjectTemplate.setHasPointPhysics 0

ObjectTemplate.hasCollisionEffect 0

ObjectTemplate.invisible 1

ObjectTemplate.timeToLive CRD_NONE/20/0/0

ObjectTemplate.gravityModifier 1

ObjectTemplate.dieAfterColl 0

ObjectTemplate.material 70

ObjectTemplate.mass 50

ObjectTemplate.drag 30

rem -------------------------------------

rem *** AT25Spawner ***

ObjectTemplate.create ObjectSpawner AT25DummySpawner

ObjectTemplate.setObjectTemplate 1 AT25Dummy

ObjectTemplate.setObjectTemplate 2 AT25Dummy

rem ObjectTemplate.holdObject 1

ObjectTemplate.minSpawnDelay 20

ObjectTemplate.maxSpawnDelay 20

ObjectTemplate.TimeToLive 30

ObjectTemplate.Distance 20

ObjectTemplate.spawnOffset 0/0/0

ObjectTemplate.team 2

ObjectTemplate.MaxNrOfObjectSpawned 1

ObjectTemplate.damageWhenLost 10

rem *** AT25Dummy ***

ObjectTemplate.create SimpleObject AT25Dummy

ObjectTemplate.geometry Ammobox_m1

ObjectTemplate.addTemplate AT25Spawner

ObjectTemplate.hasMobilePhysics 1

ObjectTemplate.hasDynamicShadow 1

ObjectTemplate.drag 2

ObjectTemplate.mass 3000

ObjectTemplate.hasCollisionPhysics 1

ObjectTemplate.hasResponsePhysics 1

ObjectTemplate.hasArmor 1

ObjectTemplate.hitpoints 10

ObjectTemplate.maxhitpoints 10

ObjectTemplate.material 45

rem *** AT25Spawner ***

ObjectTemplate.create ObjectSpawner AT25Spawner

ObjectTemplate.setObjectTemplate 1 AT25

ObjectTemplate.setObjectTemplate 2 AT25

ObjectTemplate.holdObject 1

ObjectTemplate.minSpawnDelay 20

ObjectTemplate.maxSpawnDelay 20

ObjectTemplate.TimeToLive 30

ObjectTemplate.Distance 20

ObjectTemplate.spawnOffset 0/0/0

ObjectTemplate.team 2

ObjectTemplate.MaxNrOfObjectSpawned 1

ObjectTemplate.damageWhenLost 10

The chain works until AT25Dummy spawns, but then nothing more happens.