LlGiveInventory
From Second Life Wiki
(Redirected from LSL llGiveInventory)
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
Description
Function: llGiveInventory( key destination, string inventory );| 150 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Give inventory to destination.
| • key | destination | – | Avatar or object UUID. | |
| • string | inventory | – | an item in the prim's inventory |
If destination is an object then it must be in the same region.
If destination is an avatar they do not have to be in the same region.
Caveats
- If inventory is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
- There is no way to know if the transaction failed.
- Scripts reach destination disabled (not running). To send a running script to a prim use llSetRemoteScriptAccessPin
Examples
default { touch_start(integer n) { //Gives this script to whoever touches the object. llGiveInventory(llDetectedKey(0), llGetScriptName()); } }

