Difference between revisions of "Category:LSL Controls"

From Second Life Wiki
Jump to: navigation, search
m (multi lang)
m
 
Line 1: Line 1:
{{Multi-lang}}{{LSL Header}}
+
{{LSL Header|ml=*}}
 
Controls in LSL generally refer to controlling {{LSLGC|Camera|cameras}} or {{LSLGC|Object|objects}}. {{LSLGC|Avatar}} input keys (movement keys and mouseclicks) can be caught and objects can be made to perform certain actions based on those keys, but you cannot ''control'' an agent's movement with LSL.  
 
Controls in LSL generally refer to controlling {{LSLGC|Camera|cameras}} or {{LSLGC|Object|objects}}. {{LSLGC|Avatar}} input keys (movement keys and mouseclicks) can be caught and objects can be made to perform certain actions based on those keys, but you cannot ''control'' an agent's movement with LSL.  
  
 
However, you can control the camera of an agent as well as capture an agent's camera position and rotation. You can also determine if an agent is currently in mouselook.
 
However, you can control the camera of an agent as well as capture an agent's camera position and rotation. You can also determine if an agent is currently in mouselook.
  
Before being able to do any of the above, the script must request the appropriate permissions from the agent with {{LSLG|llRequestPermissions}}
+
Before being able to do any of the above, the script must request the appropriate permissions from the agent with [[llRequestPermissions]]
  
 
Unfortunately, there is no way to determine the position of the client's pointer using only LSL.
 
Unfortunately, there is no way to determine the position of the client's pointer using only LSL.
Line 18: Line 18:
 
'''Functions'''
 
'''Functions'''
  
: {{LSLG|llTakeControls}}
+
: [[llTakeControls]]
: {{LSLG|llSetCameraParams}}
+
: [[llSetCameraParams]]
: {{LSLG|llClearCameraParams}}
+
: [[llClearCameraParams]]
: {{LSLG|llReleaseControls}}
+
: [[llReleaseControls]]
  
 
'''Events'''
 
'''Events'''
: {{LSLG|control}}
+
: [[control]]
  
 
{{LSLC|}}
 
{{LSLC|}}

Latest revision as of 14:58, 24 October 2008

Controls in LSL generally refer to controlling cameras or objects. Avatar input keys (movement keys and mouseclicks) can be caught and objects can be made to perform certain actions based on those keys, but you cannot control an agent's movement with LSL.

However, you can control the camera of an agent as well as capture an agent's camera position and rotation. You can also determine if an agent is currently in mouselook.

Before being able to do any of the above, the script must request the appropriate permissions from the agent with llRequestPermissions

Unfortunately, there is no way to determine the position of the client's pointer using only LSL.

Usage Examples

Forcing an Avatar into mouselook when they sit on an object to prepare them for interacting with that object: llForceMouselook

Turning and moving an object based on the Avatar's movement keys.

Checking if an Avatar is looking at an object.

Functions

llTakeControls
llSetCameraParams
llClearCameraParams
llReleaseControls

Events

control