Input
Handle avatar controls and inspect game-control modes.
What do you want to do?
llTakeControls(integer controls, integer accept, integer pass_on)Intercepts inputs (keyboard/mouse clicks) from the agent, specifically those specified by controls. The boolean accept determines if events are generated, and pass_on determines if inputs also perform their default functions. Requires the PERMISSION_TAKE_CONTROLS runtime permission.llReleaseControls()Stops taking inputs (previously acquired via llTakeControls) from the avatar, dequeuing any remaining control events and revoking the PERMISSION_TAKE_CONTROLS permission.integer llGetGameControlMode(key id)Returns a GAME_CONTROL_MODE_* integer indicating the current game-control mode for the avatar specified by id.Reference
8 topic entries
Badges
Kind
integer llGetGameControlMode(key id)Returns a GAME_CONTROL_MODE_* integer indicating the current game-control mode for the avatar specified by id.functionNEW (Added 2026-09-30)list llGetGameControlModeAxes(key id)Returns a list of floats representing the modal axes for the current game-control mode of the avatar specified by id. Element count and index meanings vary by mode; use the GAME_CONTROL_AXIS_* constants as indices.functionNEW (Added 2026-09-30)integer llGetGameControlModeButtons(key id)Returns a bitmask of the modal buttons currently active for the current game-control mode of the avatar specified by id. Bit meanings vary by mode; use the GAME_CONTROL_BUTTON_* constants as masks.functionNEW (Added 2026-09-30)llReleaseControls()Stops taking inputs (previously acquired viallTakeControls) from the avatar, dequeuing any remaining control events and revoking thePERMISSION_TAKE_CONTROLSpermission.functionllSetClickAction(integer action)Sets the action (a CLICK_ACTION_* flag) performed when an avatar left-clicks the prim.functionllTakeControls(integer controls, integer accept, integer pass_on)Intercepts inputs (keyboard/mouse clicks) from the agent, specifically those specified by controls. The boolean accept determines if events are generated, and pass_on determines if inputs also perform their default functions. Requires thePERMISSION_TAKE_CONTROLSruntime permission.functionP (Requires PERMISSION_TAKE_CONTROLS)control(key id, integer level, integer edge)Triggered to pass captured avatar control inputs into the script. The parameter level indicates held controls, and edge indicates change in controls (both are bitfields of CONTROL_* constants).eventgame_control(key id, integer button_levels, list axes)Triggered when a compatible viewer sends game controller input changes for the avatar specified by id. Only triggers for scripts in attachments or seats.event
No matching entries. Try a different term or filter.