LSL Wiki Mirror 10-5-2006: llGetInventoryKey

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
key llGetInventoryKey(string name)

Returns the key of the inventory item name, or NULL_KEY if name not in object's inventory, or if the object owner does not have modify, copy and transfer permissions on that inventory item.

This can't be stressed enough: if the object owner does not have modify, copy and transfer permissions on the inventory item being requested, then the function returns the NULL_KEY. Everything else may have partial permissions, including the object and the script, and the function will work but the inventory item being requested MUST have full permissions. Do not attempt to use llGetInventoryKey to verify the existence of an inventory item. For that (and for checking its type), you want llGetInventoryType.

Compare with llGetInventoryName and llGetInventoryNumber.


Functions | Inventory
There is no comment on this page. [Display comments/form]