The teleportx command sends the user to a new location immediately. Compared to the teleport command, teleportx does not allow teleportation to another world nor does it save the new coordinates to the teleport history.
teleportx [+/-][north/south coordinate][N/S] [+/-][east/west coordinate][E/W] [+/-][altitude A] [+/-][direction]
All arguments are individually optional, however a valid teleport command must specify a destination of some sort. The teleport command cannot be used with the create trigger nor with the adone trigger.
N/S, E/W Coordinates
The north/south coordinate and east/west coordinate together specify the new location. The format of these coordinates are the same as how the current location is displayed in the browser title bar.
The coordinates can also be relative. Relative coordinates are more often used with the warp command but they can also be used with teleport. To specify a relative coordinate, place a + or - character before it and omit the N/S/E/W character. If one coordinate is relative, all coordinates in the command must be relative or else the teleport will be invalid. See the below examples for a sample of a relative teleport.
The altitude argument specifies an optional new altitude. As with the coordinates, altitude is specified in units of 10 meters. The altitude argument must be terminated by the letter 'A' to distinguish it from the other arguments. It may also be made relative by placing a + or - in front.
Note: gravity kicks in immediately after a teleport is completed. When creating a teleport that sends users to a new altitude, keep in mind that they will begin falling immediately. If you are trying to place them on to an elevated surface, they often may not immediately load the ground or floor pieces required to keep them at the new elevation and will often "fall through" the floor before it loads. This can be a difficult problem to solve, but one thing you can try is teleporting them to an elevation that is well above the desired one, to increase the chances that the floor pieces will have loaded by the time they have fallen that far.
The direction argument specifies an optional new direction to face, in degrees. If omitted, the user remains facing the same direction as they were before the teleport. Sample direction numbers are noted below, but keep in mind that any number from 0 to 360 is valid.
Sample Direction Numbers:
- 0: Faces North
- 90: Faces West
- 180: Faces South
- 270: Faces East
- 360: Faces North
This argument may also be made relative by placing a + or - in front.
bump teleportx 100n 100w 1.5a 180
When bumped this object will send the user to the location 100N 100W in the current world, at 15 meters above the ground and facing directly South.
activate teleportx +0 +0 +10a
This creates on object that sends the user 100 meters directly up from their current location when they click on it. Note that +0 +0 needs to be specified for the coordinates even though only the altitude is to be modified.
Commands: Addforce • Addtorque • Alpharef • Animate • Astart • Astop • Camera • Collider • Colltag • Color • Corona • Envi • Examine • Frame • Group • Light • Link • Lock • Matfx • Media • Midi • Move • Name • Noise • Opacity • Picture • Rotate • Say • Scale • Seq • Shadow • Shear • Sign • Skew • Solid • Sound • Tag • Teleport / Teleportx • Texture • Timer • URL • Velocity • Visible • Warp • Webnl:Commando:Teleportx