Point velocitysensor: Difference between revisions
Jump to navigation
Jump to search
m (typos) |
m (Replacing {{base point}} with {{this is a}}. This operation was performed by a bot.) |
||
Line 1: | Line 1: | ||
{{ | {{this is a|point entity|name=point_velocitysensor}} It detects and outputs an entity's velocity. | ||
== Keyvalues == | == Keyvalues == |
Revision as of 23:02, 6 January 2024
point_velocitysensor
is a point entity available in all Source games. It detects and outputs an entity's velocity.
Keyvalues
- Target Entity Name ([todo internal name (i)]) <targetname>
- Name of the entity whose velocity will be sensed.
- Measurement Axis ([todo internal name (i)]) <vector>
- Defines a vector originating from the entity. If the measured entity moves at speed x in exactly this direction, the point_velocitysensor will output x in it's Velocity output. The magnitude of this vector is irrelevant to the calculation.
- 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
Inputs
- Enable
- Enable the sensor.
- Disable
- Disable the sensor.
Outputs
- Velocity <float >
- Fired when the Target's Velocity changes, passing the new velocity. This may be a negative number.