ll.TakeControls

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.

Example

ll.TakeControls(3.14, true, true)
Raw function spec json
{
  "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,
  "must_use": false,
  "link": "https://wiki.secondlife.com/wiki/LlTakeControls",
  "private": false,
  "takesSelf": false,
  "name": "TakeControls",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "()"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Controls",
          "desc": "Bit-field of CONTROL_* flags.",
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Accept",
          "desc": "Boolean, determines whether control events are generated.",
          "type": [
            {
              "def": "simple",
              "value": "boolean"
            }
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "PassOn",
          "desc": "Boolean, determines whether controls are disabled.",
          "type": [
            {
              "def": "simple",
              "value": "boolean"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll