LlTeleportAgent

From Second Life Wiki

Second Life Wiki > LlTeleportAgent
Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/fr Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ja Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Image:Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Contents

Summary

Function: llTeleportAgent( key id, string simname, vector pos, vector look_at );
REQUEST Function ID
0.1 Delay
10.0 Energy

Teleports agent id to location pos.

• key id
• string simname
• vector pos
• vector look_at

Caveats

  • This function causes the script to sleep for 0.1 seconds.Agent must be the script owner or must be on script owner's land (or the script owner is a member of the land group for group-owned land). Repeated teleports within a short period should be suppressed.

Search JIRA for related Bugs

Examples

Notes

This would be extremely useful in complex builds such as Stargates, HUDS and other teleportation creations. NOTE: look_at is included to match llMapDestination's look_at possible future functionality, which currently does nothing.

  • See SVC-212[c] for the JIRA listing for this function.

Deep Notes

Notes

  • Target agent should ignore subsequent calls to llTeleportAgent within a modest time limit (5 seconds, say), to prevent it from being used for a repeat-teleport trap. This timeout should be per-agent, applied to any script attempting to teleport the agent using this call within that period, and the script need not be informed.
  • If the sim name is empty, target is the same sim, and the "teleporting" screen is not interposed (ie, it's equivalent to WarpMove, except without sitting on a prim).
Personal tools
In other languages