function
Function syntax
llForceMouselook(integer mouselook// Boolean. IfTRUE, forces a sitting avatar into mouselook; ifFALSE, allows them to keep their current camera mode.
);- Energy
- 10
Sets whether any avatar sitting on this prim is forced into mouselook mode. Setting mouselook to TRUE forces the mode; FALSE (default) allows the avatar to keep their current camera mode.
Sets if a sitting avatar should be forced into mouselook when they sit on this prim.
A sit target is not necessary for this function to work.
llForceMouselook(0);Caveats
Section titled “Caveats”- 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.
Examples
Section titled “Examples”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. }}See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.