Initial upload
Initial upload.
This commit is contained in:
21
_module/nss/destroyself.nss
Normal file
21
_module/nss/destroyself.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
void DestroyStuff() {
|
||||
|
||||
object oInv = GetFirstItemInInventory(OBJECT_SELF);
|
||||
while (GetIsObjectValid(oInv) != 0) {
|
||||
DestroyObject(oInv);
|
||||
oInv = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
DestroyObject(OBJECT_SELF);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
float fTimer = 180.00;
|
||||
AssignCommand(OBJECT_SELF, DelayCommand(fTimer, DestroyStuff()));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user