trigger_proximity

From Source Entities
Jump to navigation Jump to search

Code classes:

Trigger.png

trigger_proximity is a brush entity present in all Source games. When an object is inside its volume, it measures that object's distance from another entity.

Keyvalues[edit | edit source]

Point to Measure From (measuretarget) <target_destination>
Entity to measure the distance from. The trigger can use its own origin as the measuring point if specified here. Bug: If the specified entity is parented to anything, NearestEntityDistance never fires.
Radius to measure within (radius) <float>
How close an entity has to be to the Point to Measure From to fire the NearestEntityDistance output.

Outputs[edit | edit source]

NearestEntityDistance <float>
Fires whenever there's a change in distance to the nearest valid entity that's touching the trigger and within the radius. Activator is the nearest entity. Automatically puts the distance to the nearest entity divided by Radius to measure within as the input parameter, unless overridden by the mapper.

See Also[edit | edit source]