RATDOG/_module/nss/destroyselfnofx.nss

13 lines
338 B
Plaintext
Raw Normal View History

void main()
{
// Set destroyable.
SetIsDestroyable(TRUE, FALSE, FALSE);
// Remove plot/immoral/lootable flags JUST in case.
SetPlotFlag(OBJECT_SELF, FALSE);
SetImmortal(OBJECT_SELF, FALSE);
SetLootable(OBJECT_SELF, FALSE);
// <span class="highlight">Destroy</span> ourselves
DestroyObject(OBJECT_SELF);
}