Category:LSL Controls
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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
Events
Pages in category "LSL Controls"
The following 15 pages are in this category, out of 15 total.