CHANGED ALLOWED DROP/ja: Difference between revisions
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) mNo edit summary |
Asuka Neely (talk | contribs) mNo edit summary |
||
| Line 11: | Line 11: | ||
changed(integer change) | changed(integer change) | ||
{ | { | ||
if (change & CHANGED_ALLOWED_DROP) // | if (change & CHANGED_ALLOWED_DROP) //&であって、&&ではありません。これはビット演算です! | ||
{ | { | ||
llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script."); | llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script."); | ||
Revision as of 20:33, 1 January 2008
| LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
解説
定数: integer CHANGED_ALLOWED_DROP = 0x40;integer 定数 CHANGED_ALLOWED_DROP の値は 0x40 です。
オーナー以外のユーザ(もしくはオーナがオブジェクトが編集不可能な)がプリム内に追加しました。
これはllAllowInventoryDropが可能になっているときのみ重要です。
関連記事
サンプル
default
{
changed(integer change)
{
if (change & CHANGED_ALLOWED_DROP) //&であって、&&ではありません。これはビット演算です!
{
llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script.");
}
}
}