LlRequestInventoryData/ja: Difference between revisions
Jump to navigation
Jump to search
Mako Nozaki (talk | contribs) m カテゴリ変更 |
Mako Nozaki (talk | contribs) m Undo revision 849492 by Mako Nozaki (Talk) |
||
| Line 59: | Line 59: | ||
|notes | |notes | ||
|deprecated | |deprecated | ||
|cat1=Inventory | |cat1=Inventory | ||
|cat2=Dataserver | |cat2=Dataserver | ||
|cat3=Landmark | |cat3=Landmark | ||
|cat4 | |cat4 | ||
}} | }} | ||
Revision as of 03:05, 12 April 2010
| LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: key llRequestInventoryData( string name );
オブジェクトのインベントリ内オブジェクトから、データを要求します。データがdataserverイベントで取得される時に提供されます。
dataserverで提供される時に識別で用いられるためを key で返します。
| • string | name | – | プリムの インベントリ の中にあるアイテム |
| 名前 の型 | dataserver | 解説 | ||||
|---|---|---|---|---|---|---|
| ランドマーク | (vector) | global_position_of_landmark = llGetRegionCorner() + (vector)data; | ||||
警告
- この関数は 1.0 秒間、スクリプトを停止します。
- name がプリムの中で見つからない場合、エラーが DEBUG_CHANNEL 上で叫ばれます。
サンプル
<lsl>//-- Open map for owner to 1st landmark in object inventory on touch //-- *MUST* be in an attached object (llMapDestination Requirement for non-touch use) key vgKeyOwner;
default {
touch_start( integer vIntNull )
{
if (llDetectedKey( 0 ) == vgKeyOwner)
{
integer vIntLMcount = llGetInventoryNumber( INVENTORY_LANDMARK );
//-- make sure we have a landmark in invetory
if (vIntLMcount)
{
llRequestInventoryData( llGetInventoryName( INVENTORY_LANDMARK, 0 ) );
}
}
}
dataserver( key vKeyNull, string vStrData )
{
//-- because we don't know who touched us in this event, this
//-- only works for the owner when called from the dataserver
llMapDestination( llGetRegionName(), (vector)vStrData, ZERO_VECTOR );
}
on_rez( integer vIntNull )
{
vgKeyOwner = llGetOwner();
}
}</lsl>
関連項目
関数
| • | llMapDestination |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。