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.
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,
"must_use": false,
"link": "https://wiki.secondlife.com/wiki/LlTeleportAgentGlobalCoords",
"private": false,
"takesSelf": false,
"name": "TeleportAgentGlobalCoords",
"signatures": [
{
"def": "signature",
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
{
"def": "simple",
"value": "()"
}
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "AvatarID",
"desc": "UUID of avatar.",
"type": [
{
"def": "simple",
"value": "uuid"
},
{
"def": "simple",
"value": "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": [
{
"def": "simple",
"value": "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": [
{
"def": "simple",
"value": "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": [
{
"def": "simple",
"value": "vector"
}
],
"variadic": false,
"optional": false
}
]
}
]
}