llGetInventoryCreator
function
Function syntax
key llGetInventoryCreator(string item// Name of the item in the prim's inventory.
);- Returns
key- Energy
- 10
Returns the key (UUID) of the creator of the specified inventory item.
Returns a key of the creator of the inventory item.
key result = llGetInventoryCreator("");Caveats
Section titled “Caveats”- If item has multiple creators, then this function will return
NULL_KEY. (e.g. if an object created by Lex contained a script created by Strife). See SVC-6985 and SVC-6820 for more information.
Examples
Section titled “Examples”Add an object to a prims inventory, as well as this script, in order to get the name of the creator.
default{ state_entry(){ llRequestAgentData(llGetInventoryCreator(llGetInventoryName( INVENTORY_OBJECT, 0)),DATA_NAME); }
dataserver(key qid, string data){ llOwnerSay(data); }}See also
Section titled “See also”Functions
Section titled “Functions”llGetInventoryAcquireTime— Returns the time the item was added to the prim’s inventoryllGetInventoryName— Returns the inventory item’s namellGetInventoryType— Tests to see if an inventory item exists and returns its typellGetInventoryNumber— Returns the number of items of a specific type in inventoryllGetInventoryPermMask— Returns the inventory item’s permissionsllGetInventoryKey— Returns the inventory item’s UUID (if full perm)
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.