Changed folder name.
Changed folder name.
This commit is contained in:
23
_module/nss/trashbarrel.nss
Normal file
23
_module/nss/trashbarrel.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
/*--------------------------------------------------------
|
||||
|
||||
Script Name: trashbarrel
|
||||
----------------------------------------------------------
|
||||
Created By: Genisys(Guile)
|
||||
Created On: 2/09/09
|
||||
----------------------------------------------------------
|
||||
|
||||
This script goes in the OnClose Event of a container, it
|
||||
will destroy everything inside upon closing.
|
||||
|
||||
----------------------------------------------------------*/
|
||||
|
||||
void main()
|
||||
{
|
||||
object oMe = OBJECT_SELF;
|
||||
object oItem = GetFirstItemInInventory(oMe);
|
||||
while(GetIsObjectValid(oItem))
|
||||
{
|
||||
DestroyObject(oItem, 0.0f);
|
||||
oItem = GetNextItemInInventory(oMe);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user