ll.SetLinkCamera

ll.SetLinkCamera(LinkNumber: number, EyeOffset: vector, LookOffset: vector) : ()

Sets the camera eye offset, and the offset that camera is looking at, for avatars that sit on the linked prim.

Example

ll.SetLinkCamera(12, vector(1,1,1), vector(1,1,1))
{
  "def": "func",
  "desc": "Sets the camera eye offset, and the offset that camera is looking at, for avatars that sit on the linked prim.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetLinkCamera",
  "name": "SetLinkCamera",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "LinkNumber",
          "desc": "Prim link number (0: unlinked, 1: root prim, >1: child prims) or a LINK_* flag",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "EyeOffset",
          "desc": "Offset, relative to the object's centre and expressed in local coordinates, that the camera looks from.",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "LookOffset",
          "desc": "Offset, relative to the object's centre and expressed in local coordinates, that the camera looks toward.",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll