Difference between revisions of "LlForceMouselook"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
|p1_type=integer|p1_subtype=boolean|p1_name=mouselook
|p1_type=integer|p1_subtype=boolean|p1_name=mouselook
|p1_desc
|p1_desc
|func_footnote=A [[llSitTarget|sit target]] is not necessary for this function to work. The default 'Force Mouselook' value for all objects is {{#var:FALSE}}.
|func_footnote=A [[llSitTarget|sit target]] is not necessary for this function to work. The default ''Force Mouselook'' value for all objects is {{#var:FALSE}}.
|func_desc=Sets if a sitting avatar should be forced into [[mouselook]] when they sit on this prim.
|func_desc=Sets if a sitting avatar should be forced into [[mouselook]] when they sit on this prim.
|return_text
|return_text

Revision as of 23:13, 22 December 2013

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 the avatar will keep their current camera mode.

A sit target is not necessary for this function to work. The default Force Mouselook value for all objects is FALSE.

Caveats

  • This function has no effect on avatars already seated.
  • The user may exit mouselook mode at any time.
  • 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>

Deep Notes

Tests

•  llForceMouseLook Test

Signature

function void llForceMouselook( integer mouselook );