llTakeControls
function ll.TakeControls(Controls: number, Accept: number, PassOn: number)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.
Parameters
-
Controls(number) - Bit-field of CONTROL_* flags.
-
Accept(number) - Boolean, determines whether control events are generated.
-
PassOn(number) - Boolean, determines whether controls are disabled.
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.TakeControls().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llTakeControls