LlForceMouselook: Difference between revisions
Jump to navigation
Jump to search
Fred Gandt (talk | contribs) m There was no truth to the statement about a worn object with this property creating an on-screen button. Removed it. |
Kaluura Boa (talk | contribs) m Added a link to llGetCameraRot() |
||
| Line 30: | Line 30: | ||
|also_functions={{LSL DefineRow||[[llAvatarOnSitTarget]]|}} | |also_functions={{LSL DefineRow||[[llAvatarOnSitTarget]]|}} | ||
{{LSL DefineRow||[[llGetAgentInfo]]|}} | {{LSL DefineRow||[[llGetAgentInfo]]|}} | ||
{{LSL DefineRow||[[llGetCameraRot]]|}} | |||
{{LSL DefineRow||[[llSetCameraAtOffset]]|}} | {{LSL DefineRow||[[llSetCameraAtOffset]]|}} | ||
{{LSL DefineRow||[[llSetCameraEyeOffset]]|}} | {{LSL DefineRow||[[llSetCameraEyeOffset]]|}} | ||
Revision as of 07:24, 22 April 2012
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llForceMouselook( integer mouselook );| 0.0 | Forced Delay |
| 10.0 | Energy |
Sets if a sitting avatar should be forced into mouselook when they sit on this prim.
| • integer | mouselook | – | boolean, if TRUE when an avatar sits on the prim, the avatar will be forced into mouselook mode. FALSE is the default setting and will undo a previously set TRUE or do nothing. |
A sit target is not necessary for this function to work.
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
Force Mouselook on Sit <lsl>default {
state_entry()
{
llForceMouselook(TRUE); // Forces sitting avatars into mouselook.
llForceMouselook(FALSE); // Reverts the setting to the default...
// ...as with a newly created prim.
}
}</lsl>
See Also
Functions
| • | llAvatarOnSitTarget | |||
| • | llGetAgentInfo | |||
| • | llGetCameraRot | |||
| • | llSetCameraAtOffset | |||
| • | llSetCameraEyeOffset |