Difference between revisions of "LlGetInventoryCreator"

From Second Life Wiki
Jump to navigation Jump to search
(added example which i added before at the lslwiki)
Line 8: Line 8:
|return_text=of the creator of the inventory '''item'''.
|return_text=of the creator of the inventory '''item'''.
|spec
|spec
|caveats
|caveats=
 
----
 
If the object in inventory has multiple creators, IE: A Prim created by person A, Which contains a script in it created by person B, LlGetInventoryCreator returns a NULL_KEY (00000000-0000-0000-0000-000000000000). [https://jira.secondlife.com/browse/SVC-6985] and [https://jira.secondlife.com/browse/SVC-6820] for more information.
|constants
|constants
|examples=Add an object to a prims inventory, as well as this script, in order to get the name of the creator.
|examples=Add an object to a prims inventory, as well as this script, in order to get the name of the creator.

Revision as of 00:44, 31 August 2011

Summary

Function: key llGetInventoryCreator( string item );

Returns a key of the creator of the inventory item.

• string item an item in the inventory of the prim this script is in

Caveats

  • If item is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.----

If the object in inventory has multiple creators, IE: A Prim created by person A, Which contains a script in it created by person B, LlGetInventoryCreator returns a NULL_KEY (00000000-0000-0000-0000-000000000000). [1] and [2] for more information.

All Issues ~ Search JIRA for related Bugs

Examples

Add an object to a prims inventory, as well as this script, in order to get the name of the creator. <lsl>default{

   state_entry(){
       llRequestAgentData(llGetInventoryCreator(llGetInventoryName( INVENTORY_OBJECT, 0)),DATA_NAME);
   }
   
   dataserver(key qid, string data){
       llOwnerSay(data);
   }
}</lsl>

See Also

Functions

•  llGetInventoryName Returns the inventory item's name
•  llGetInventoryType Tests to see if an inventory item exists and returns its type
•  llGetInventoryNumber Returns the number of items of a specific type in inventory
•  llGetInventoryPermMask Returns the inventory item's permissions
•  llGetInventoryKey Returns the inventory item's UUID (if full perm)

Deep Notes

Search JIRA for related Issues

Signature

function key llGetInventoryCreator( string item );