CHANGED REGION/ja
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
解説
定数: integer CHANGED_REGION = 0x100;integer 定数 CHANGED_REGION の値は 0x100 です。
装着されたオブジェクトの地域が、テレポートまたは地域の境界線を越えたために変更されました。このイベントはアタッチメントのルートプリムでのみ発生します。このイベントはアタッチメントの子プリムでは発生せず、装着されておらず地域を横切ったオブジェクトでも発生しません。
関連記事
サンプル
default
{
changed(integer change)
{
if (change & CHANGED_REGION) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The region the object is in has changed.");
}
}
}