ll.TeleportAgentGlobalCoords

ll.TeleportAgentGlobalCoords(AvatarID: uuid, GlobalPosition: vector, RegionPosition: vector, LookAtPoint: vector) : ()

Teleports an agent to the RegionPosition local coordinates within a region which is specified by the GlobalPosition global coordinates. The agent lands facing the position defined by LookAtPoint local coordinates. Requires the PERMISSION_TELEPORT permission. This function can only teleport the owner of the object.

Example

ll.TeleportAgentGlobalCoords(
  uuid('677bf9a4-bba5-4cf9-a4ad-4802a0f7ef46'),
  vector(1,1,1),
  vector(1,1,1),
  vector(1,1,1)
)
{
  "def": "func",
  "desc": "Teleports an agent to the RegionPosition local coordinates within a region which is specified by the GlobalPosition global coordinates. The agent lands facing the position defined by LookAtPoint 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/LlTeleportAgentGlobalCoords",
  "name": "TeleportAgentGlobalCoords",
  "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": "GlobalPosition",
          "desc": "Global coordinates of the destination region. Can be retrieved by using llRequestSimulatorData(region_name, DATA_SIM_POS).",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "RegionPosition",
          "desc": "The position within the target region to teleport the avatar to, if no landmark was provided.",
          "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