Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
point_proximity_sensor
point_proximity_sensor
is a point entity available in all Source games. It continuously outputs the distance from itself to a target entity.
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
Distance
output.![]() |
---|
CPointProximitySensor defined in ![]() pointanglesensor.cpp
|
Keyvalues
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
- Target Entity Name
(target)
<targetname> - Name of the entity whose distance will be sensed.
Angles:
- Pitch Yaw Roll (Y Z X)
(angles)
<angle> - 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.
EnableDisable:
- Start Disabled
(StartDisabled)
<boolean> - Stay dormant until activated (with the
Enable
input).
Flags
- [
1
] : Test the distance as measured along the axis specified by our direction.
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.