LlForceMouselook

来自人工智能助力教育知识百科
Mkx讨论 | 贡献2020年4月13日 (一) 13:04的版本 (创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llForceMouselook( integer mouselook ); |参数= 参数:…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

Template:Needs Translation/


函数名
Function: llForceMouselook( integer mouselook );
参数:nteger mouselook – boolean, if TRUE when an avatar sits on the prim, the avatar will be forced into mouselook mode, if FALSE (default) the avatar will keep their current camera mode.
返回值:Sets if a sitting avatar should be forced into mouselook when they sit on this prim.
注意事项
This function has no effect on avatars already seated.

The user may exit mouselook mode at any time.

This can be detected by polling llGetAgentInfo. 

There is nothing stopping someone from modifying or making a client that ignores this.

示例
Force Mouselook on Sit
default
{
    state_entry()
    {
        llForceMouselook(TRUE); // Forces sitting avatars into mouselook.
 
        llForceMouselook(FALSE); // Reverts the setting to the default...
                                 // ...as with a newly created prim.
    }
}
相关函数
llAvatarOnSitTarget

llGetAgentInfo

llGetCameraRot

llSetCameraAtOffset

llSetCameraEyeOffset

相关事件