LlGiveInventory/ja

From Second Life Wiki

Jump to: navigation, search

関数: llGiveInventory( key destination, string inventory );

destinationinventoryを渡します。

• key destination アバターかオブジェクトのUUID.
• string inventory item名、


destinationがオブジェクトの場合、同じリージョンでなければなりません。
destinationがアバタの場合、同じリージョンでなくてもかまいません。

警告

  • inventoryがプリム内から無くなっている場合、エラーがDEBUG_CHANNELで報告されます。
  • 取引が失敗したとしても、知る方法はありません。
  • destination範囲のスクリプトは無効です(動きません)。プリムへ動いているスクリプトを送るにはllSetRemoteScriptAccessPinを使用します。

default
{
    touch_start(integer n)
    {
        //Gives this script to whoever touches the object.
        llGiveInventory(llDetectedKey(0), llGetScriptName());
    }
}

関連項目

イベント

•  changed

関数

•  llGiveInventoryList
•  llSetRemoteScriptAccessPin
•  llMapDestination
Personal tools