LlGiveInventory/ja

From Second Life Wiki

メインページ > LlGiveInventory > LlGiveInventory/ja
Jump to: navigation, search

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

destinationinventoryを渡します。

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

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

警告

  • プリムのインベントリからinventoryが無い場合、 エラーが上でshoutされます。
  • 取引が失敗したとしても、知る方法はありません。
  • destination に送られたスクリプトは無効化されます。("実行中" のチェックが外れる。一旦 destination を take して rez し直すか、スクリプトを再コンパイルするまで実行できない。) スクリプトを実行中のまま別のプリムへ送るには llSetRemoteScriptAccessPin を使ってください。

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

関連項目

イベント

•  changed

関数

•  llGiveInventoryList
•  llSetRemoteScriptAccessPin
•  llMapDestination
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。
Personal tools
In other languages