Func areaportal: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
 
		
	
Thunder4ik (talk | contribs) m (clean up, added underlinked tag)  | 
				Thunder4ik (talk | contribs)  m (→top: Unicodifying, replaced: {{language subpage → {{langsp)  | 
				||
| Line 2: | Line 2: | ||
{{Underlinked|date=January 2024}}  | {{Underlinked|date=January 2024}}  | ||
<!-- When this page is updated to {{langsp}} or {{  | <!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Func areaportal}}    | ||
{{CD|CAreaPortal|file1=func_areaportal.cpp}}  | {{CD|CAreaPortal|file1=func_areaportal.cpp}}  | ||
[[File:Toolsareaportal.gif|link=Areaportal|left]] {{this is a|e2|name=func_areaportal}} It creates an [[areaportal]], used to manage visibility in maps. When the portal is open it stops objects not visible through it from rendering; when the portal is closed it cannot be seen through at all.  | [[File:Toolsareaportal.gif|link=Areaportal|left]] {{this is a|e2|name=func_areaportal}} It creates an [[areaportal]], used to manage visibility in maps. When the portal is open it stops objects not visible through it from rendering; when the portal is closed it cannot be seen through at all.  | ||
Revision as of 08:32, 8 January 2024
Not to be confused with linked_portal_door (
 An unrelated entity, sometimes referred to as a "world portal").
This article needs more 
 links to other articles to help 
 integrate it into the encyclopedia. Please help improve this article by adding links 
 that are relevant to the context within the existing text.
January 2024
January 2024
| CAreaPortal | 
func_areaportal  is an   e2  available in all 
 Source games. It creates an areaportal, used to manage visibility in maps. When the portal is open it stops objects not visible through it from rendering; when the portal is closed it cannot be seen through at all.
These are not really brush entities. They are brush entities from a mapper/Hammer perspective, but by the time they reach the game, the brush is gone and this is, in effect, a point entity.
The entity's brush must be textured with tools\toolsareaportal (seen on the left) for it to function.
Keyvalues
- Name of Linked Door (target) <targetname>
 - A prop_door_rotating or func_door whose open/closed state controls the on/off state of the portal. This is optional.
 
- Initial State (StartOpen) <boolean>
 - Initial state of the portal.
 
- Name (targetname) <string>[ Edit ]
 - The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. 
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities 
Inputs
- Open
 - Sets the portal to the open state.
 
- Close
 - Sets the portal to the closed state.
 
- Toggle
 - Opens the portal if closed. Closes the portal if open.
 
