Difference between revisions of "LlRemoveInventory"

From Second Life Wiki
Jump to navigation Jump to search
Line 6: Line 6:
|return_text
|return_text
|spec
|spec
|caveats
|caveats=*If the current script is removed it will continue to run for a short period of time after this call.
|constants
|constants
|examples=Remove the current script from the object
|examples=Remove the current script from the object

Revision as of 07:52, 28 December 2007

Summary

Function: llRemoveInventory( string item );

Remove the named inventory item

• string item an item in the inventory of the prim this script is in

Caveats

  • If item is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
  • If the current script is removed it will continue to run for a short period of time after this call.
All Issues ~ Search JIRA for related Bugs

Examples

Remove the current script from the object

default
{
    state_entry()
    {
        llRemoveInventory(llGetScriptName());
    }
}

Deep Notes

Search JIRA for related Issues

Signature

function void llRemoveInventory( string item );