LlPatrolPoints/ja
< LlPatrolPoints
Jump to navigation
Jump to search
Revision as of 13:46, 2 November 2023 by Misaki Vanilla (talk | contribs)
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: llPatrolPoints( list patrolPoints, list options );
Option | V | Parameters | Default | Description |
---|---|---|---|---|
[ PATROL_PAUSE_AT_WAYPOINTS ] | 0 | [ integer boolean ] | [ FALSE ] | Whether the character should pause briefly after reaching each patrol point. |
警告
- Must use llCreateCharacter or script won't compile
- Vertical positions specified for any vectors should be chosen to be as close as possible to the actual height of the terrain requested. Large difference between the provided vertical position and the actual terrain/object will result in failure of the behavior.
- The patrolPoints list requires a minimum of two valid vectors.
- If a vector in the list is outside the nav volume (e.g.: too high,) it will be ignored.
サンプル
default
{
state_entry()
{
llCreateCharacter([CHARACTER_MAX_SPEED, 25, CHARACTER_DESIRED_SPEED, 15.0]);
//MAX_SPEED is @ 20 by default
}
touch_start(integer total_number)
{
list points = [llGetPos() + <5,0,0>, llGetPos() - <5,0,0>];
llPatrolPoints(points, [PATROL_PAUSE_AT_WAYPOINTS, TRUE]);
}
}
関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。