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 ); } }