Skip to content

llTeleportAgent

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

Parameters
AvatarID (string)
UUID of avatar.
LandmarkName (string)
Name of landmark (in object contents), or empty string, to use.
Position (vector)
If no landmark was provided, the position within the current region to teleport the avatar to.
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.TeleportAgent().

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