Difference between revisions of "LlRemoveInventory"

From Second Life Wiki
Jump to navigation Jump to search
m (Displayed contents in Edit do not always get updated until refreshed with a new edit.)
m
Line 7: Line 7:
|spec
|spec
|caveats=*If the current script is removed it will continue to run for a short period of time after this call.
|caveats=*If the current script is removed it will continue to run for a short period of time after this call.
*The observed contents in the edit window may not correctly reflect the updated contents until refreshed with a new edit.
*With multiple executions an llSleep(0.1) after llRemoveInventory will allow edit window contents to refresh correctly and avoid errors on phantom contents.
|constants
|constants
|examples=
|examples=

Revision as of 18:54, 25 November 2010

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 );