Func portal detector: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Updated entity data style for consistency)
Line 1: Line 1:
{{portal series brush|func_portal_detector}}
{{portal series brush|func_portal_detector}}


==Entity Description==
==Entity description==
A region that fires an output if a portal is placed in it.
A region that fires an output if a portal is placed in it.


==Keyvalues==
==Keyvalues==
* {{KV Targetname}}
{{KV Targetname}}
* {{KV EnableDisable}}
{{KV EnableDisable}}


==Inputs==
==Inputs==
* {{I Targetname}}
{{I Targetname}}
* {{I EnableDisable}}
{{I EnableDisable}}
* '''Toggle'''
; <code>Toggle</code>
: Toggle this entity.
: Toggle this entity.


==Outputs==
==Outputs==
* {{O Targetname}}
{{O Targetname}}
* '''OnStartTouchPortal1'''
; <code>OnStartTouchPortal1</code>
:Fired when portal 1 (blue) is placed intersecting the portal detector.
:Fired when portal 1 (blue) is placed intersecting the portal detector.
* '''OnStartTouchPortal2'''
; <code>OnStartTouchPortal2</code>
:Fired when portal 2 (orange) is placed intersecting the portal detector.
:Fired when portal 2 (orange) is placed intersecting the portal detector.
* '''OnStartTouchLinkedPortal'''
; <code>OnStartTouchLinkedPortal</code>
:Fired when linked portal is placed intersecting the portal detector.
:Fired when linked portal is placed intersecting the portal detector.
* '''OnStartTouchBothLinkedPortals'''
; <code>OnStartTouchBothLinkedPortals</code>
:Fired when both of a pair of portals is placed intersecting the portal detector.
:Fired when both of a pair of portals is placed intersecting the portal detector.

Revision as of 12:14, 3 May 2011

Template:Portal series brush

Entity description

A region that fires an output if a portal is placed in it.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle
Toggle this entity.

Outputs

OnStartTouchPortal1
Fired when portal 1 (blue) is placed intersecting the portal detector.
OnStartTouchPortal2
Fired when portal 2 (orange) is placed intersecting the portal detector.
OnStartTouchLinkedPortal
Fired when linked portal is placed intersecting the portal detector.
OnStartTouchBothLinkedPortals
Fired when both of a pair of portals is placed intersecting the portal detector.