Difference between revisions of "LlForceMouselook"
Jump to navigation
Jump to search
FALSE undoes this setting." style="border-bottom:1px dotted; cursor:help;">mouselook );
All Issues ~ Search JIRA for related Bugs
Gigs Taggart (talk | contribs) m (LSL llForceMouselook moved to LlForceMouselook) |
|||
Line 12: | Line 12: | ||
**This can be detected by polling {{LSLG|llGetAgentInfo}}. | **This can be detected by polling {{LSLG|llGetAgentInfo}}. | ||
|constants | |constants | ||
|examples | |examples= | ||
'''Force Mouselook on Sit''' | |||
<pre> | |||
default | |||
{ | |||
changed(integer change) //event changed | |||
{ | |||
if (change & CHANGED_LINK) //event changed and it has to do with linking or avatar sitting | |||
if (llAvatarOnSitTarget() != NULL_KEY) //the changed event is an avatar sitting | |||
llForceMouselook(TRUE); //force into mouselook on sit | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions=*{{LSLG|llAvatarOnSitTarget}} | |also_functions=*{{LSLG|llAvatarOnSitTarget}} |
Revision as of 22:43, 25 February 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llForceMouselook( integer <span title="boolean, If TRUE any avatar that sits on this object is forced into mouselook mode.FALSE undoes this setting." style="border-bottom:1px dotted; cursor:help;">mouselook );
294 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Sets if a sitting avatar should be forced into mouselook mode upon sitting on the object.
• integer | mouselook | – | boolean, If TRUE any avatar that sits on this object is forced into mouselook mode. FALSE undoes this setting. |
Caveats
- The user may exit mouselook mode at any time.
- This can be detected by polling llGetAgentInfo.
Examples
Force Mouselook on Sit
default { changed(integer change) //event changed { if (change & CHANGED_LINK) //event changed and it has to do with linking or avatar sitting if (llAvatarOnSitTarget() != NULL_KEY) //the changed event is an avatar sitting llForceMouselook(TRUE); //force into mouselook on sit } }