Prim Inventory
Inspect, transfer, remove, and rez object inventory.
Feature: Inventory
What do you want to do?
integer llGetInventoryNumber(integer type)Returns the count of items of the specified type (INVENTORY_*) in the prim's inventory.string llGetInventoryName(integer type, integer index)Returns the name of the inventory item of the specified type (INVENTORY_*) at the specified inventory index.llGiveInventory(key target, string item)Gives the specified inventory item to the target, as permitted by the permissions system. The target can be any agent or an object located in the same region.llRezObject(string item, vector pos, vector vel, rotation rot, integer start_param)Instantiates the named inventory object with the bounding box centered at pos with velocity vel and rotation rot, passing param as the on_rez start parameter. The vel parameter is ignored if the rezzed object is non-physical.Reference
27 topic entries
llAllowInventoryDrop(integer add)functionIf add is
TRUE, allows users without object modify permissions to drop inventory items into the prim. IfFALSE, restricts inventory dropping to users with modify permissions.integer llDerezObject(key id, integer flags)functionDerezzes (deletes or returns) a targeted object in the region previously rezzed by a script in this linkset, returning
TRUEon success orFALSEon failure.string llGetInventoryAcquireTime(string item)functionReturns the time when the item was placed in the prim's inventory, as a UTC timestamp string of the form "YYYY-MM-DDThh:mm:ssZ"
key llGetInventoryCreator(string item)functionReturns the key (UUID) of the creator of the specified inventory item.
string llGetInventoryDesc(string item)functionReturns the description string of the specified inventory item.
key llGetInventoryKey(string item)functionReturns the key (UUID) of the specified inventory item.
string llGetInventoryName(integer type, integer index)functionReturns the name of the inventory item of the specified type (INVENTORY_*) at the specified inventory index.
integer llGetInventoryNumber(integer type)functionReturns the count of items of the specified type (INVENTORY_*) in the prim's inventory.
integer llGetInventoryPermMask(string item, integer group)functionReturns the specified item's permission flags for the specified group.
integer llGetInventoryType(string item)functionReturns an integer representing the INVENTORY_* type of the named inventory item.
string llGetScriptName()functionReturns a string containing the name of the script calling this function.
integer llGetScriptState(string script)functionReturns a boolean integer indicating whether the specified script in the prim's inventory is running (returns
TRUEif running,FALSEotherwise).integer llGiveAgentInventory(key agent, string folder, list items, list options)functionGives the specified inventory items to the agent as a new folder named folder, as permitted by the permissions system. Customizes the transfer using options.
llGiveInventory(key target, string item)functionGives the specified inventory item to the target, as permitted by the permissions system. The target can be any agent or an object located in the same region.
llGiveInventoryList(key target, string folder, list items)functionGives the list of inventory items to target as a new folder named folder. If target is an object, the items are passed directly into its inventory and no folder is created. The target must be an agent or an object in the same region.
llGodLikeRezObject(key id, vector pos)functionRezzes an object directly from a UUID specified by id at the position pos, provided the owner has the god-bit set.
llRemoteLoadScriptPin(key target, string script, integer pin, integer running, integer start_param)functionCopies the script into target, setting it running (if running is
TRUE) with the start_param, provided the script owner has modify permissions on target and target's PIN matches pin (set viallSetRemoteScriptAccessPin).llRemoveInventory(string item)functionPermanently deletes the named inventory item from the prim's inventory.
key llRequestInventoryData(string item)functionAsynchronously requests data for the named inventory item, triggering a dataserver event. Currently, only landmark items are supported (which return local region coordinates). Returns a key query handle.
llResetOtherScript(string script)functionResets the named script name in the prim's inventory.
llRezAtRoot(string item, vector pos, vector vel, rotation rot, integer start_param)functionInstantiates the named inventory object with the root prim at pos with velocity vel and rotation rot, passing start_param as the
on_rezstart parameter. The vel parameter is ignored if the rezzed object is non-physical.llRezObject(string item, vector pos, vector vel, rotation rot, integer start_param)functionInstantiates the named inventory object with the bounding box centered at pos with velocity vel and rotation rot, passing param as the
on_rezstart parameter. The vel parameter is ignored if the rezzed object is non-physical.key llRezObjectWithParams(string item, list options)functionInstantiates the named inventory object (defaulting to the rezzing prim's position unless
REZ_POSis specified) using the initial set of parameters specified in options. Returns the key of the rezzed object, or a blank key on failure.llSetInventoryPermMask(string item, integer group, integer flags)functionSets the specified item's permission flags for the specified group.
llSetRemoteScriptAccessPin(integer pin)functionSets the prim's remote script access PIN to pin (a non-zero value enables loading via
llRemoteLoadScriptPin, while zero disables it).llSetScriptState(string script, integer running)functionSets the running state of the named script in the prim's inventory. If running is
TRUE, the script is enabled; ifFALSE, it is disabled.changed(integer changes)eventTriggered when various properties of the object change. The parameter changes is a bitfield of CHANGED_* flags.
No matching entries. Try a different term or filter.