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.
NOTE: If you intend to use llRezObject and/or llRezAtRoot with the inventory object, be aware that the key returned, is the key of the item within the inventory. Using llRezObject and/or llRezAtRoot, if the inventory object has copy permission, will result in a new copy of the inventory item being rezzed, with a new key issued to the new item. However, if the inventory item doesn't have copy permission, the original will be rezzed and the key will be unchanged. -
DavidSoon
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.
NOTE:This function does not work on object as of server version 1.25." - CryogenicBlitz
This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.
Functions | Inventory