Difference between revisions of "LlGetInventoryNumber"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func_id=146|func_sleep=0.0|func_energy=10.0
|func_id=146|func_sleep=0.0|func_energy=10.0
|func=llGetInventoryNumber|return_type=integer|p1_type=integer|p1_name=type
|func=llGetInventoryNumber|return_type=integer
|p1_type=integer|p1_name=type|p1_desc=INVENTORY_* flag
|func_footnote
|func_footnote
|func_desc
|func_desc

Revision as of 18:38, 27 February 2007

Summary

Function: integer llGetInventoryNumber( integer type );
0.0 Forced Delay
10.0 Energy

Returns an integer that is the number of items of a given type in the prims inventory.

• integer type INVENTORY_* flag

Flag Inventory Type
INVENTORY_NONE -1 Item does not exist.
INVENTORY_ALL Any inventory type.
INVENTORY_TEXTURE 0 texture
INVENTORY_SOUND 1 sound
INVENTORY_LANDMARK 3 landmark
INVENTORY_CLOTHING 5 clothing
INVENTORY_OBJECT 6 object
Flag Inventory Type
INVENTORY_NOTECARD 7 notecard
INVENTORY_SCRIPT 10 script
INVENTORY_BODYPART 13 body part
INVENTORY_ANIMATION 20 animation
INVENTORY_GESTURE 21 gesture
INVENTORY_SETTING 56 setting
INVENTORY_MATERIAL 57 material

Examples

Deep Notes

Signature

function integer llGetInventoryNumber( integer type );