Sector_SetPortal

From ZDoom Wiki
Jump to: navigation, search

57:Sector_SetPortal (tag, type, plane, misc, alpha)


Establishes a one-way portal between two sectors.

Parameters

  • tag: Tag of sectors in which the portal must be seen. Note that the sectors seen through the portal must not share this tag.
  • type: The type of portal.
  • plane: Whether the portal is set on the floor (0), the ceiling (1), or both planes (2). [The ability to set portals on both floor and ceiling is (New from 2.5.0)]
  • misc: The meaning of this argument depends on the type.
For a normal view portal (type 0): Specifies whether the line belongs to the sector viewed through the portal (1) or the sector in which the portal is seen (0).
For a transferred portal (type 1): Specifies the sector tag of the portal to copy.
For a skybox portal (type 2): Ignored.
  • alpha: Gives a translucency value to the portal plane.

Types

  • 0: Normal view portal. This is what will generally be used. Two linedefs must be defined, one in the "source" sector and one in the "destination" sector; the first three arguments for both of these linedefs must be identical while the fourth must be different. Any number of sectors can share this link by having the same tag. To make a two-way portal, another pair of linedef must be used.
  • 1: Copied portal. Use this for sectors which need to have a different tag, such as a lift, yet should share the portal.
  • 2: Skybox portal. The linedef's front sector is the skybox and must contain a SkyCamCompat object. The sky from this skybox will be visible on the concerned tag of all tagged sectors; even if the sky flat is not used. (New from 2.5.0)
Personal tools
Namespaces

Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox