Skip to content

llTeleportAgentGlobalCoords

function ll.TeleportAgentGlobalCoords(AvatarID: string, 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.

Parameters
AvatarID (string)
UUID of avatar.
GlobalPosition (vector)
Global coordinates of the destination region. Can be retrieved by using llRequestSimulatorData(region_name, DATA_SIM_POS).
RegionPosition (vector)
The position within the target region to teleport the avatar to, if no landmark was provided.
LookAtPoint (vector)
The position within the target region that the avatar should be turned to face upon arrival.

Add example usage here showing SLua/Luau syntax with ll.TeleportAgentGlobalCoords().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.