Point proximity sensor: Difference between revisions
Jump to navigation
Jump to search
Bug:If target doesn't appear with entity spawn - point_proximity_sensor will not fire
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
Line 1: | Line 1: | ||
{{this is a|name=point_proximity_sensor | {{this is a|point entity|name=point_proximity_sensor}} It continuously outputs the distance from itself to a target entity. | ||
{{bug|If target doesn't appear with entity spawn - [[point_proximity_sensor]] will not fire<code>Distance</code>output.}} | {{bug|If target doesn't appear with entity spawn - [[point_proximity_sensor]] will not fire<code>Distance</code>output.}} | ||
{{CD|CPointProximitySensor|file1=pointanglesensor.cpp}} | {{CD|CPointProximitySensor|file1=pointanglesensor.cpp}} |
Revision as of 17:39, 17 May 2024
point_proximity_sensor
is a point entity available in all Source games. It continuously outputs the distance from itself to a target entity.

Distance
output. [todo tested in ?]![]() |
---|
CPointProximitySensor |
![]() |
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Target Entity Name (target) <targetname>
- Name of the entity whose distance will be sensed.
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Flags
- Test the distance as measured along the axis specified by our direction. : [1]
Inputs
- SetTargetEntity <targetname > !FGD
- Sets the target entity and begins output. The targetnames !activator and !caller are accepted.
- Toggle
- Toggle the sensor between enabled and disabled.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
Outputs
- Distance <float >
- Distance of the target entity away from this entity.