Difference between revisions of "LlForceMouselook"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Behaviour when used in a HUD)
Line 5: Line 5:
|p1_name=mouselook
|p1_name=mouselook
|p1_desc=boolean, If [[TRUE]] any avatar that sits on it is forced into [[mouselook]] mode. [[FALSE]] undoes this setting.
|p1_desc=boolean, If [[TRUE]] any avatar that sits on it is forced into [[mouselook]] mode. [[FALSE]] undoes this setting.
|func_footnote=If '''mouselook''' is [[TRUE]] then when an avatar sits upon the prim, the avatar will be forced into [[mouselook]] mode.<br/>[[FALSE]] is the default state and will not change the agents camera mode.<br/>A [[llSitTarget|sit target]] is not necessary for this function to work.
|func_footnote=If '''mouselook''' is [[TRUE]] then when an avatar sits upon the prim, the avatar will be forced into [[mouselook]] mode.<br/>[[FALSE]] is the default state and will not change the agents camera mode.<br/>A [[llSitTarget|sit target]] is not necessary for this function to work.<br/><br/>If the function is used outside of sitting, e.g. in a HUD, then the wearer is not forced into Mouselook mode. Rather, a button appears at the bottom of the screen, and the wearer must click it to enter Mouselook.
|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 15:07, 12 June 2009

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 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.

If the function is used outside of sitting, e.g. in a HUD, then the wearer is not forced into Mouselook mode. Rather, a button appears at the bottom of the screen, and the wearer must click it to enter Mouselook.

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);
   }
}</lsl>

See Also

Deep Notes

Tests

•  llForceMouseLook Test

Signature

function void llForceMouselook( integer mouselook );