Difference between revisions of "Teleporter"

From BZFlagWiki
Jump to: navigation, search
m (Add teleporters.)
 
m (Added History, added categories, put in some misc. information.)
Line 6: Line 6:
 
|
 
|
 
   teleporter
 
   teleporter
  name example_teleporter  
+
  name example_teleporter  
  position 0.0 0.0 0.0  
+
  position 0.0 0.0 0.0  
  size 5 0.125 20
+
  size 5 0.125 20
  rotation 0.0
+
  rotation 0.0
  border 1.12
+
  border 1.12
 
   end  
 
   end  
 
|}
 
|}
 
Valid parameters for a teleporter are
 
Valid parameters for a teleporter are
 +
*'''name'''; defines a name for the teleport (2.0+ only). although rarely used, it proves helpful to use these for linking teleports.
 
*'''position'''; defines the center of the teleporter in X and Y and the bottom of the teleporter in Z.
 
*'''position'''; defines the center of the teleporter in X and Y and the bottom of the teleporter in Z.
 
*'''rotation'''; defines a rotation around the Z axis for the teleporter, in degrees.
 
*'''rotation'''; defines a rotation around the Z axis for the teleporter, in degrees.
 
*'''size'''; defines the distance from the center to the side of the teleporter in X and Y, and the total height of the teleporter in Z.
 
*'''size'''; defines the distance from the center to the side of the teleporter in X and Y, and the total height of the teleporter in Z.
 
*'''border'''; defines the yellow caution border around the teleporter entry point.
 
*'''border'''; defines the yellow caution border around the teleporter entry point.
 +
 +
Note: Teleporters are entered through Y. As such, it is recommended to keep Y fairly small (.125 works well). However, if Y is zero, it will cause BZFlag bugs. If you need to enter a teleport from X, rotating it 90 degrees is the suggested solution. Teleports are 2-sided, not 4.
  
 
==Appearence==
 
==Appearence==
Line 23: Line 26:
  
 
==History==
 
==History==
 +
The teleporters first appeared in [[BZFlag 1.0.0]]. In [[BZFlag 2.0.0]], they were redesigned, introducing the name field, making link creation easier for designers.
  
 
==Editor Support==
 
==Editor Support==
 
Supported by all known editors.
 
Supported by all known editors.
 +
 +
[[category:Map Making]]
 +
[[category:Map Objects]]

Revision as of 00:40, 19 March 2007

A Teleporter is a BZW map structure that defines a object which transports the user to another teleporter in a different part of the world/map.

Code

The code for a teleporter object is as follows

 teleporter
  name example_teleporter 
  position 0.0 0.0 0.0 
  size 5 0.125 20
  rotation 0.0
  border 1.12
 end 

Valid parameters for a teleporter are

  • name; defines a name for the teleport (2.0+ only). although rarely used, it proves helpful to use these for linking teleports.
  • position; defines the center of the teleporter in X and Y and the bottom of the teleporter in Z.
  • rotation; defines a rotation around the Z axis for the teleporter, in degrees.
  • size; defines the distance from the center to the side of the teleporter in X and Y, and the total height of the teleporter in Z.
  • border; defines the yellow caution border around the teleporter entry point.

Note: Teleporters are entered through Y. As such, it is recommended to keep Y fairly small (.125 works well). However, if Y is zero, it will cause BZFlag bugs. If you need to enter a teleport from X, rotating it 90 degrees is the suggested solution. Teleports are 2-sided, not 4.

Appearence

Teleporters appear with a yellow/black caution texture on the outer border of the object and with a pulsing texture in the middle.

History

The teleporters first appeared in BZFlag 1.0.0. In BZFlag 2.0.0, they were redesigned, introducing the name field, making link creation easier for designers.

Editor Support

Supported by all known editors.