Teleport_NewMap

From ZDoom Wiki
Jump to: navigation, search

74:Teleport_NewMap (map, pos, face)


  • map: Levelnum of the map to teleport to
  • pos: Corresponds to destination player start spot arg0
  • face: If TRUE (> 0) then the player will retain the direction they were facing from the last map

Teleports the player to a new map and to the player start spot whose arg0 matches pos.

Example:

Teleport_NewMap (2, 0, 1);

In Doom2 wads in Hexen format (Zdoom) the above line means teleport the player to map02 (Underhalls) and the player 1 start (0) keeping the direction they were facing on the previous map.