Skip to content
lsl.devlsl.devLSL Dev

llGetInventoryCreator

function
Function syntax
key llGetInventoryCreator(
  1. 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.

How to use
key result = llGetInventoryCreator("");
  • 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.
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);
}
}
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.