Editing
Portal Define
(section)
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Parameters== # ''portal ID'': specify the ID (number) of the new portal. This value will be used to identify this portal and will be referenced in '''portalfloor''', '''portalceiling''' and '''portal'''. The value must be non-zero, positive and unique. Eternity will log a warning in the console if you accidentally reuse a portal ID in another '''Portal_Define''' linedef. # ''portal type'': specify the type of the portal. Only the ''linked'' portal is interactive; the rest are merely visual. The ''two-way'' portals are those which allow the destination area to have a corresponding portal pointing back to the source area. Valid types are: #* 0: [[Portal#Fixed_Plane_Portals|plane portal]] #* 1: [[Portal#Horizon_Plane_Portals|horizon portal]] #* 2: [[Portal#Skybox_Portals|skybox portal]] #* 3: regular purely visual [[Portal#Anchored_Portals|anchored portal]] #* 4: two-way purely visual [[Portal#Anchored_Portals|anchored portal]] #* 5: two-way [[linked portal]] # ''anchor line ID'': this only applies and is necessary for portal types 3-5 (anchored and linked) and must be 0 for types 0-2. It is the [[line ID]] of the linedef which acts as an "anchor" for this linedef. The portal you define will have its view offset and rotation (if applicable) calculated by the position difference between the anchor and the current linedef. # ''Z parameter'': this parameter has different meanings depending on portal type. If portal type supports it, it can be positive or negative. For types 0-2 it must be zero. For types 3-4 (visual anchored portals), it specifies the visual ''Z offset'': how much the target area is displaced from the source area vertically. For type 5 (linked portals), since Z offsets aren't currently supported, it specifies the ''plane Z'' offset, which changes the position of the linked portal plane Z from its usual position, and is useful for cross-portal elevators. See the details section for more info on this. # ''flipped'': only applies for types 3-4 (visual anchored portals); for the rest it must be 0. If this parameter is 1, it causes the anchored portal to rotate view by 180 degrees, and is useful if the source and target lines have the same angle but not the same orientation.
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information