LlStopLookAt

来自人工智能助力教育知识百科
跳转至: 导航搜索

Template:Needs Translation/


函数名
Function: llStopLookAt( );
参数:无
返回值:停止使对象指向目标

llLookAtllRotLookAt连用。

注意事项
示例
示例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

llRotLookAt

相关事件