llTeleportAgentGlobalCoords
void llTeleportAgentGlobalCoords(key AvatarID, vector GlobalPosition, vector RegionPosition, vector LookAtPoint)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(key) - 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.
Examples
Section titled “Examples”Add example usage here.
Add additional notes, caveats, or tips here.
See Also
Section titled “See Also”- Related pages can be linked here