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 16:00, 25 November 2010

Summary

Function: llRemoveInventory( string item );
0.0 Forced Delay
10.0 Energy

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.

Examples

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

default {

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

Deep Notes

Signature

function void llRemoveInventory( string item );