ll.CreateLink(TargetPrim: uuid, Parent: number) : ()

Attempt to link the object the script is in, to target (requires permission PERMISSION_CHANGE_LINKS be set). Requires permission PERMISSION_CHANGE_LINKS be set.

Example

ll.CreateLink(uuid(<key>), 1)
{
  "def": "func",
  "desc": "Attempt to link the object the script is in, to target (requires permission PERMISSION_CHANGE_LINKS be set).\nRequires permission PERMISSION_CHANGE_LINKS be set.",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlCreateLink",
  "name": "CreateLink",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "TargetPrim",
          "desc": "Object UUID that is in the same region.",
          "type": [
            "uuid",
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Parent",
          "desc": "If FALSE, then TargetPrim becomes the root. If TRUE, then the script's object becomes the root.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll