Teleport

From ZDoom Wiki
Jump to navigation Jump to search

70:Teleport (tid, tag, nosourcefog)


  • tid: Thing ID of the destination spot
  • tag: Tag of the destination sector
  • nosourcefog: If non-zero, the teleport only spawns a teleport fog object at the destination but not the source of the teleportation

Teleports the activating thing to a new location. If tag is 0, it will use a random teleport destination out of those with the matching tid. This can be restricted to certain sectors if tag is non-0. If tid is 0 and tag is non-0, it will use the first teleport destination found in the first sector with the matching tag.

Conversions from linedef types

The following Doom map format types can be converted as Teleport:

Type Conversion Trigger
MiniDoomLogoIcon.pngDoom 39:W1 Teleport Teleport(0, tag) Player Cross, Monsters Activate
MiniStrifeLogoIcon.pngStrife 39:W1 Teleport Teleport(0, tag) Player Cross, Monsters Activate
MiniDoomLogoIcon.pngDoom 97:WR Teleport Teleport(0, tag) Player Cross, Repeatable, Monsters Activate
MiniStrifeLogoIcon.pngStrife 97:WR Teleport Teleport(0, tag) Player Cross, Repeatable, Monsters Activate
MiniDoomLogoIcon.pngDoom 125:W1 Teleport Monsters Only Teleport(0, tag) Monster Cross
MiniStrifeLogoIcon.pngStrife 125:W1 Teleport Monsters Only Teleport(0, tag) Monster Cross
MiniDoomLogoIcon.pngDoom 126:WR Teleport Monsters Only Teleport(0, tag) Monster Cross, Repeatable
MiniStrifeLogoIcon.pngStrife 126:WR Teleport Monsters Only Teleport(0, tag) Monster Cross, Repeatable
MiniBoomLogoIcon.pngBoom 174:S1 Teleport Teleport(0, tag) Player Use, Monsters Activate
MiniBoomLogoIcon.pngBoom 195:SR Teleport Teleport(0, tag) Player Use, Repeatable, Monsters Activate
MiniStrifeLogoIcon.pngStrife 231:WR Teleport (Silent Source) Teleport(0, tag, 1) Player Cross, Repeatable, Monsters Activate

Alias

In ZScript, this special is alternatively called TeleportSpecial. This alias was introduced to resolve a name conflict between the special and an actor function.