Difference between revisions of "LlForceMouselook"
Jump to navigation
Jump to search
m |
m |
||
Line 17: | Line 17: | ||
|examples= | |examples= | ||
'''Force Mouselook on Sit''' | '''Force Mouselook on Sit''' | ||
< | <source lang="lsl2">default | ||
{ | { | ||
state_entry() | state_entry() | ||
Line 26: | Line 26: | ||
// ...as with a newly created prim. | // ...as with a newly created prim. | ||
} | } | ||
}</ | }</source> | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llAvatarOnSitTarget]]|}} | |also_functions={{LSL DefineRow||[[llAvatarOnSitTarget]]|}} |
Latest revision as of 00:25, 22 January 2015
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, if FALSE (default) the avatar will keep their current camera mode. |
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
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
Functions
• | llAvatarOnSitTarget | |||
• | llGetAgentInfo | |||
• | llGetCameraRot | |||
• | llSetCameraAtOffset | |||
• | llSetCameraEyeOffset |