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.
}
}
|