point_proximity_sensor
Jump to navigation
Jump to search
Code classes:
CPointProximitySensor
CPointEntity
CBaseEntity
(all ents)
point_proximity_sensor
is a point entity present in all Source games. It records the distance between it and another entity.
Flags[edit | edit source]
- 1: Test the distance as measured along the axis specified by our direction - Instead of outputting the distance from this entity to the target, the entity outputs the length of an intersecting line going in the direction of Pitch Yaw Roll that extends until it meets another imaginary line perpendicular to it which intersects the Target Entity. Useful for telling if something has crossed a certain latitude/longitude/altitude without making huge triggers.
Keyvalues[edit | edit source]
- Target Entity Name
(target)
<target_destination>
- Entity to measure the distance from.
!player
will not work, but a weapon they're holding will.
- Start Disabled
(StartDisabled)
<boolean>
- Stay inactive until Enabled.
Inputs[edit | edit source]
- SetTargetEntity (Not in FGD)
<target_destination>
- Sets Target Entity.
- Enable
- Makes the entity active.
- Disable
- Makes the entity inactive.
- Toggle
- If on, turn off. If off, turn on.
Outputs[edit | edit source]
- Distance
<float>
- Fires continuously, unless disabled. Automatically puts the distance between this entity and the Target Entity as the input parameter, unless overridden by the mapper.