-------------------------------------------------------------------------------- -- Handler.......... : onDestroy -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function Weapon0Bullet.onDestroy ( ) -------------------------------------------------------------------------------- local o = this.getObject ( ) local s = object.getScene ( o ) if ( s ~= nil ) then scene.destroyRuntimeObject ( s, o ) end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------