Teleporter Basic

From DF21 Wiki
Revision as of 05:15, 19 November 2024 by Jerethk (talk | contribs) (Created page with "'''Teleporter Basic''' is a working teleporter that exists in Dark Forces but was not discovered until the source code was reverse engineered. It transports objects to a designated location. ===How to use=== Like <code>teleporter chute</code>, <code>teleporter basic</code> is defined on a sector in a level's INF file. The following example demonstrates the usage. <pre> item: sector name: my-teleporter seq class: teleporter basic target: dest-sector1 move...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Teleporter Basic is a working teleporter that exists in Dark Forces but was not discovered until the source code was reverse engineered.

It transports objects to a designated location.

How to use

Like teleporter chute, teleporter basic is defined on a sector in a level's INF file. The following example demonstrates the usage.

item: sector  name: my-teleporter
 seq
    class: teleporter basic
    target: dest-sector1
    move: 320 -20 135 90
 seqend

A target sector must be given.

The move command instructs the teleporter where to send objects when they enter the teleporter. The syntax is:

move: [x coordinate] [y coordinate] [z coordinate] [yaw]

Important: The Y axis is inverted (unlike with elevator stops), therefore negative values are up and positive values are down in the game world.

The destination coordinates must be inside the target sector, or teleported objects may end up "lost" in the void outside any sector.