-------------------------------------------------------------------------------- -- State............ : Explode -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function Weapon0Bullet.Explode_onEnter ( ) -------------------------------------------------------------------------------- local o = this.getObject ( ) shape.setMeshOpacity ( o, 0 ) sfx.stopParticleEmitterAt ( o, 0 ) sfx.startParticleEmitterAt ( o, 0 ) this.postEvent ( 5, "onDestroy" ) -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------