LlStopLookAt
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: llStopLookAt( ); |
| 参数:无 |
| 返回值:停止使对象指向目标
与llLookAt或llRotLookAt连用。 |
| 注意事项 |
|---|
| 无 |
| 示例 |
|---|
示例1
default
{
state_entry()
{
llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
//Detects avatars
}
sensor(integer total_number)
{
llLookAt( llDetectedPos(0) + <0.0, 0.0, 1.0>, 3.0, 1.0 );
//Looks at the nearest avatar.
}
touch_start(integer total_number)
{
llStopLookAt();
llSensorRemove();
//Stops looking at any avatar and removes the sensor.
}
}
|
| 相关函数 |
|---|
| llLookAt |
| 相关事件 |
|---|
| 无 |