Difference between revisions of "LlRemoveInventory"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Displayed contents in Edit do not always get updated until refreshed with a new edit.)
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.
|constants
|constants
|examples=
|examples=

Revision as of 17:00, 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.
  • The observed contents in the edit window may not correctly reflect the updated contents until refreshed with a new edit.

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