ll.TakeControls(Controls: number, Accept: boolean, PassOn: boolean) : ()
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.
ll.TakeControls(7, true, true)
{
"def": "func",
"desc": "Take controls from the agent the script has permissions for.\nIf (Accept == (Controls & input)), send input to the script. PassOn determines whether Controls also perform their normal functions.\nRequires the PERMISSION_TAKE_CONTROLS permission to run.",
"energy": 10,
"sleep": 0,
"pure": false,
"link": "https://wiki.secondlife.com/wiki/LlTakeControls",
"name": "TakeControls",
"signatures": [
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"()"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "Controls",
"desc": "Bit-field of CONTROL_* flags.",
"type": [
"integer",
"number"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Accept",
"desc": "Boolean, determines whether control events are generated.",
"type": [
"boolean"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "PassOn",
"desc": "Boolean, determines whether controls are disabled.",
"type": [
"boolean"
],
"variadic": false,
"optional": false
}
]
}
]
}