Adding a soldier spawn to a projectile
Posted: Sat Jul 14, 2012 2:28 am
I looked around, even in ServerSideModding, for this small mod.
How do I add a soldier spawn to a projectile? I made a radio StandardMesh to use for the projectile. It drops and sits on the ground after being "fired" (using the landmine animations) but the spawner I added isn't working. How do I add it?
This is my projectile coding:
How do I add a soldier spawn to a projectile? I made a radio StandardMesh to use for the projectile. It drops and sits on the ground after being "fired" (using the landmine animations) but the spawner I added isn't working. How do I add it?
This is my projectile coding:
Code: Select all
ObjectTemplate.create Projectile RadioSpawnProjectile
ObjectTemplate.createNotInGrid 1
ObjectTemplate.geometry RadioSpawner_m1
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.addTemplate RadioSpawnPoint
ObjectTemplate.setPosition 0/0.1/0
rem * Life span of three minutes.
ObjectTemplate.timeToLive CRD_NONE/180/0/0
ObjectTemplate.gravityModifier 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setHasMobilePhysics 1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 0
ObjectTemplate.setHasPointPhysics 0
ObjectTemplate.hasCollisionEffect 0
ObjectTemplate.material 230
ObjectTemplate.invisible 0
ObjectTemplate.DetonateOnWaterCollision 0
ObjectTemplate.dieAfterColl 0
ObjectTemplate.drag 0.04
ObjectTemplate.mass 800
ObjectTemplate.create SpawnPoint RadioSpawnPoint
ObjectTemplate.setSpawnId 200
ObjectTemplate.setGroup 2