“LlPatrolPoints”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llPatrolPoints( list patrolPoints, list options ); |参数…”) |
(没有差异)
|
2020年8月23日 (日) 13:13的最新版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: llPatrolPoints( list patrolPoints, list options ); |
| 参数:
• list patrolPoints – A list of vectors for the character to travel through sequentially. The list must contain at least two entries. • list options – PATROL_* flags and their parameters |
| 返回值:
设定物件在巡逻点之间巡逻。 |
| 注意事项 |
|---|
注意事项
如果列表中的一个向量超出了 nav 卷(例如: too high) ,它将被忽略。 |
| 示例 |
|---|
示例一
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]);
}
}
|
| 相关函数 |
|---|
| llCreateCharacter |
| 相关事件 |
|---|
| path update |