Difference between revisions of "LlRemoveInventory"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 4: Line 4:
|func=llRemoveInventory|p1_type=string|p1_name=item
|func=llRemoveInventory|p1_type=string|p1_name=item
|func_footnote
|func_footnote
|func_desc=Remove the named inventory '''item'''
|func_desc=Remove the named inventory {{LSLP|item}}
|return_text
|return_text
|spec
|spec

Revision as of 10:46, 13 June 2012

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.
  • With multiple executions an llSleep(0.1) after llRemoveInventory will allow edit window contents to refresh correctly and avoid errors on phantom contents.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   CHANGED_INVENTORY not triggered by llRemoveInventory()

Examples

<lsl>// Remove the current script from the object

default {

   state_entry()
   {
       llRemoveInventory(llGetScriptName());
   }
}</lsl>

Deep Notes

All Issues

~ Search JIRA for related Issues
   CHANGED_INVENTORY not triggered by llRemoveInventory()

Signature

function void llRemoveInventory( string item );