RATDOG/_module/nss/no_scr_excorpse.nss

14 lines
298 B
Plaintext
Raw Normal View History

void main()
{
//don't proceed if we're alive again
if ( GetIsDead( OBJECT_SELF ) || GetLocalInt( OBJECT_SELF, "TEMPDIE" ) )
{
//clear death marker
DeleteLocalInt( OBJECT_SELF, "TEMPDIE" );
//time to die
SetIsDestroyable( TRUE, FALSE, FALSE );
DestroyObject( OBJECT_SELF );
}
}