Difference between revisions of "LlForceMouselook"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Void Singer (talk | contribs) m (formatted example) |
m |
||
Line 13: | Line 13: | ||
*The user may exit mouselook mode at any time. | *The user may exit mouselook mode at any time. | ||
**This can be detected by polling [[llGetAgentInfo]]. | **This can be detected by polling [[llGetAgentInfo]]. | ||
*There is nothing stopping someone from modifying or making a client that ignores this. | |||
|constants | |constants | ||
|examples= | |examples= | ||
'''Force Mouselook on Sit''' | '''Force Mouselook on Sit''' | ||
<lsl> | <lsl>default | ||
default | |||
{ | { | ||
state_entry() | state_entry() | ||
Line 23: | Line 23: | ||
llForceMouselook(TRUE); | llForceMouselook(TRUE); | ||
} | } | ||
} | }</lsl> | ||
</lsl> | |||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llAvatarOnSitTarget]]|}} | |also_functions={{LSL DefineRow||[[llAvatarOnSitTarget]]|}} |
Revision as of 08:28, 8 June 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llForceMouselook( integer mouselook );294 | Function ID |
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 any avatar that sits on it is forced into mouselook mode. FALSE undoes this setting. |
If mouselook is TRUE then when an avatar sits upon the prim, the avatar will be forced into mouselook mode.
FALSE is the default state and will not change the agents 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 <lsl>default {
state_entry() { llForceMouselook(TRUE); }}</lsl>
See Also
Functions
• | llAvatarOnSitTarget | |||
• | llGetAgentInfo | |||
• | llSetCameraAtOffset | |||
• | llSetCameraEyeOffset |