ll.DetectedType

ll.DetectedType (Number: number) -> number

Returns the type (AGENT, ACTIVE, PASSIVE, SCRIPTED) of detected object. Returns 0 if number is not a valid index. Note that number is a bit-field, so comparisons need to be a bitwise checked. e.g.: integer iType = llDetectedType(0); { // ...do stuff with the agent }

Example

ll.DetectedType(3.14)
Raw function spec json
{
  "def": "func",
  "desc": "Returns the type (AGENT, ACTIVE, PASSIVE, SCRIPTED) of detected object.\nReturns 0 if number is not a valid index.\nNote that number is a bit-field, so comparisons need to be a bitwise checked. e.g.:\ninteger iType = llDetectedType(0);\n{\n\t// ...do stuff with the agent\n}",
  "energy": 10,
  "sleep": 0,
  "must_use": true,
  "link": "https://wiki.secondlife.com/wiki/LlDetectedType",
  "private": false,
  "takesSelf": false,
  "name": "DetectedType",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Number",
          "desc": "",
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll