Don't click here unless you want to be banned.

LSL Wiki : llRemoveInventory

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are
llRemoveInventory(string inventory)

Removes the inventory item identified by inventory from the object's inventory. Note: once removed this item is gone forever: it does not return to your own inventory, so be careful with no copy items.

llRemoveInventory("Object"); // delete the item named Object from the contents of the prim

A script can delete itself by supplying the result of llGetScriptName to this function:
llRemoveInventory(llGetScriptName()); // delete this script

Attempting to delete a nonexistent inventory item will result a script error "Missing inventory item 'x'" where x is the name of the nonexistent inventory item.

This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Inventory
There are 4 comments on this page. [Display comments/form]