point_gel_sensor

From Valve Developer Community
Jump to: navigation, search



English (en)
... Icon-Important.png
Point gel sensor.png

point_gel_sensor is a point entity available in Portal 2: Community Edition Portal 2: Community Edition. It is used to detect when brush faces or entities are painted in a specified radius.

Keyvalues

Search Radius (radius) <float>
Sets the radius to search painted surfaces from."
Target Brush Faces (sides) <sidelist>
The faces on which to watch for paint."
Target Entity (target) <targetname>
The entity of which to watch for paint."
Filter Name (filtername) <filter>
Filter to use to narrow set of findable entities. See filter_activator_name for more explanation.
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Outputs

OnPainted
Gets called when paint is detected. Parameter is set to the paint type index.

Targetname:
OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (only in Left 4 Dead)
This output fires when the entity is killed and removed from the game.