llForceMouselook

From Second Life Wiki
Revision as of 23:38, 25 February 2007 by Carigorp Matzerath (talk | contribs)
Jump to navigation Jump to search

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
);

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.
All Issues ~ Search JIRA for related Bugs

Examples

Force Mouselook on Sit

default
{
    state_entry()
    {
        llSitTarget(<0,0,0.1>,ZERO_ROTATION); //needed for AvatarOnSitTarget to work. Must not all be set to 0.
    }
    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
    }

}

See Also

Deep Notes

Search JIRA for related Issues

Signature

function void llForceMouselook( integer mouselook );