Skip to content

llTakeControls

Function Syntax
void llTakeControls(
  1. integer Controls, // Bit-field of CONTROL_* flags.
  2. integer Accept, // Boolean, determines whether control events are generated.
  3. integer PassOn // Boolean, determines whether controls are disabled.
);

Take controls from the agent the script has permissions for.

If (Accept == (Controls & input)), send input to the script. PassOn determines whether Controls also perform their normal functions.

Requires the PERMISSION_TAKE_CONTROLS permission to run.