ll.TeleportAgent

ll.TeleportAgent(AvatarID: uuid, LandmarkName: string, Position: vector, LookAtPoint: vector) : ()

Requests a teleport of avatar to a landmark stored in the object's inventory. If no landmark is provided (an empty string), the avatar is teleported to the location position in the current region. In either case, the avatar is turned to face the position given by look_at in local coordinates. Requires the PERMISSION_TELEPORT permission. This function can only teleport the owner of the object.

Example

ll.TeleportAgent(
  uuid('677bf9a4-bba5-4cf9-a4ad-4802a0f7ef46'),
  'test',
  vector(1,1,1),
  vector(1,1,1)
)
{
  "def": "func",
  "desc": "Requests a teleport of avatar to a landmark stored in the object's inventory. If no landmark is provided (an empty string), the avatar is teleported to the location position in the current region. In either case, the avatar is turned to face the position given by look_at in local coordinates.\nRequires the PERMISSION_TELEPORT permission. This function can only teleport the owner of the object.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlTeleportAgent",
  "name": "TeleportAgent",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "AvatarID",
          "desc": "UUID of avatar.",
          "type": [
            "uuid",
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "LandmarkName",
          "desc": "Name of landmark (in object contents), or empty string, to use.",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Position",
          "desc": "If no landmark was provided, the position within the current region to teleport the avatar to.",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "LookAtPoint",
          "desc": "The position within the target region that the avatar should be turned to face upon arrival.",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll