OsLocalTeleportAgent
From OpenSimulator
Line 27: | Line 27: | ||
</div> | </div> | ||
Teleports an avatar with uuid agentID to the specified newPosition within same region.<br> | Teleports an avatar with uuid agentID to the specified newPosition within same region.<br> | ||
+ | It ignores region teleport settings like Telehub or landpoint<br> | ||
+ | <br> | ||
The avatar must have rights to enter the target position.<br> | The avatar must have rights to enter the target position.<br> | ||
The avatar must had granted PERMISSION_TELEPORT to the script or the owner of the prim containing the script must also be owner of the parcel where the avatar is currently on.<br> | The avatar must had granted PERMISSION_TELEPORT to the script or the owner of the prim containing the script must also be owner of the parcel where the avatar is currently on.<br> |
Revision as of 15:04, 1 May 2019
void osLocalTeleportAgent(key agentID, vector newPosition, vector newVelocity, vector newLookat, integer optionFlags)
| |
Caution ! still experimental, subject to changes Teleports an avatar with uuid agentID to the specified newPosition within same region. - OptionFlags is a bit field: | |
Threat Level | None |
Permissions | see description |
Extra Delay | 0 seconds |
Example(s) | |
vector LandingPoint = <128,128,50>; // X,Y,Z landing point for avatar to arrive at vector LookAt = <1,1,0>; // which way they look at when arriving // default { state_entry() { llWhisper(0, "OS Local Teleport Active"); } touch_start(integer num_detected) { key avatar = llDetectedKey(0); llInstantMessage(avatar, "Teleporting you to : " + (string)LandingPoint); osLocalTeleportAgent(avatar, LandingPoint, ZEROVECTOR, LookAt, 2); } } |