Difference between revisions of "LlRemoveInventory"

From Second Life Wiki
Jump to navigation Jump to search
(<lsl> example)
m
Line 1: Line 1:
{{LSL_Function/inventory|item|uuid=false|type}}{{LSL_Function
{{Issues/SVC-304}}{{LSL_Function/inventory|item|uuid=false|type}}{{LSL_Function
|func_id=151|func_sleep=0.0|func_energy=10.0
|func_id=151|func_sleep=0.0|func_energy=10.0
|func=llRemoveInventory|p1_type=string|p1_name=item
|func=llRemoveInventory|p1_type=string|p1_name=item

Revision as of 01:16, 30 November 2008

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.

Examples

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

default {

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

Deep Notes

Signature

function void llRemoveInventory( string item );