Category:LSL Controls

From Second Life Wiki
Revision as of 07:46, 13 January 2008 by Gally Young (talk | contribs) (multi lang)
Jump to navigation Jump to search

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