Prim Inventory
Inspect, transfer, remove, and rez object 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
Badges
Kind
llAllowInventoryDrop(integer add)If add isTRUE, allows users without object modify permissions to drop inventory items into the prim. IfFALSE, restricts inventory dropping to users with modify permissions.functioninteger llDerezObject(key id, integer flags)Derezzes (deletes or returns) a targeted object in the region previously rezzed by a script in this linkset, returningTRUEon success orFALSEon failure.functionstring llGetInventoryAcquireTime(string item)Returns 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"functionkey llGetInventoryCreator(string item)Returns the key (UUID) of the creator of the specified inventory item.functionstring llGetInventoryDesc(string item)Returns the description string of the specified inventory item.functionkey llGetInventoryKey(string item)Returns the key (UUID) of the specified inventory item.functionstring llGetInventoryName(integer type, integer index)Returns the name of the inventory item of the specified type (INVENTORY_*) at the specified inventory index.functioninteger llGetInventoryNumber(integer type)Returns the count of items of the specified type (INVENTORY_*) in the prim's inventory.functioninteger llGetInventoryPermMask(string item, integer group)Returns the specified item's permission flags for the specified group.functioninteger llGetInventoryType(string item)Returns an integer representing the INVENTORY_* type of the named inventory item.functionstring llGetScriptName()Returns a string containing the name of the script calling this function.functioninteger llGetScriptState(string script)Returns a boolean integer indicating whether the specified script in the prim's inventory is running (returnsTRUEif running,FALSEotherwise).functioninteger llGiveAgentInventory(key agent, string folder, list items, list options)Gives the specified inventory items to the agent as a new folder named folder, as permitted by the permissions system. Customizes the transfer using options.functionS (Sleeps 3s)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.functionllGiveInventoryList(key target, string folder, list items)Gives 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.functionS (Sleeps 3s)llGodLikeRezObject(key id, vector pos)Rezzes an object directly from a UUID specified by id at the position pos, provided the owner has the god-bit set.functionG (Requires god mode)llRemoteLoadScriptPin(key target, string script, integer pin, integer running, integer start_param)Copies the script into target, setting it running (if running isTRUE) with the start_param, provided the script owner has modify permissions on target and target's PIN matches pin (set viallSetRemoteScriptAccessPin).functionS (Sleeps 3s)llRemoveInventory(string item)Permanently deletes the named inventory item from the prim's inventory.functionkey llRequestInventoryData(string item)Asynchronously 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.functionS (Sleeps 1s)llResetOtherScript(string script)Resets the named script name in the prim's inventory.functionllRezAtRoot(string item, vector pos, vector vel, rotation rot, integer start_param)Instantiates the named inventory object with the root prim at pos with velocity vel and rotation rot, passing start_param as theon_rezstart parameter. The vel parameter is ignored if the rezzed object is non-physical.functionS (Sleeps 0.1s)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 theon_rezstart parameter. The vel parameter is ignored if the rezzed object is non-physical.functionS (Sleeps 0.1s)key llRezObjectWithParams(string item, list options)Instantiates the named inventory object (defaulting to the rezzing prim's position unlessREZ_POSis specified) using the initial set of parameters specified in options. Returns the key of the rezzed object, or a blank key on failure.functionS (Sleeps 0.1s)llSetInventoryPermMask(string item, integer group, integer flags)Sets the specified item's permission flags for the specified group.functionG (Requires god mode)llSetRemoteScriptAccessPin(integer pin)Sets the prim's remote script access PIN to pin (a non-zero value enables loading viallRemoteLoadScriptPin, while zero disables it).functionS (Sleeps 0.2s)llSetScriptState(string script, integer running)Sets the running state of the named script in the prim's inventory. If running isTRUE, the script is enabled; ifFALSE, it is disabled.functionchanged(integer changes)Triggered when various properties of the object change. The parameter changes is a bitfield of CHANGED_* flags.event
No matching entries. Try a different term or filter.