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

LSL Wiki : llRemoveInventory

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl805.us.archive.org
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.

Example:
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
Comments [Hide comments/form]
What if the string inventory is not unique, do all objects with that name get deleted, or just the first one?
-- HeusDens (2007-07-28 12:08:05)
And how about Folders?
-- HeusDens (2007-07-28 12:08:26)
Simple answer to both...
"What if the string inventory is not unique, do all objects with that name get deleted, or just the first one?"
There can never be a non-unique inventory name in an object.
"And how about Folders?"
There can never be folders in an object. (Other then the contents folder that you see)
-- CoryFimicoloud (2007-07-28 12:42:05)
hum... looks like llRemoveInventory() do not trigger a changed event ?
-- 84.66.90.202.dsl.dyn.mana.pf (2007-11-15 03:58:55)
Attach a comment to this page: