func_areaportal
Not to be confused with linked_portal_door ( An unrelated entity, sometimes referred to as a "world portal").
class hierarchy |
---|
CAreaPortal defined in func_areaportal.cpp
|
func_areaportal
is a brush entity 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
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
- Name of Linked Door
(target)
<targetname> - A
prop_door_rotating
orfunc_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.
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.