CHANGED ALLOWED DROP/ja - Second Life Wiki

CHANGED ALLOWED DROP/ja

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Constant: integer CHANGED_ALLOWED_DROP = 0x40;

integerの定数CHANGED_ALLOWED_DROPは0x40の値をもちます。

オーナー以外のユーザ(もしくはオーナがオブジェクトが編集不可能な)がプリム内に追加しました。 これはllAllowInventoryDropが可能になっているときのみ重要です。

関連項目

定数

•  CHANGED_INVENTORY

関数

•  llAllowInventoryDrop

イベント

•  changed

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.");
        }
    }
}