This article's documentation is for anything that uses the Source engine. Click here for more information.

Point velocitysensor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Wrong title template added)
m (Substituted IO templates)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{wrongtitle|title=point_velocitysensor}}
{{CD|CPointVelocitySensor|file1=PointAngularVelocitySensor.cpp}}
{{base_point}}
{{this is a|point entity|name=point_velocitysensor|except=Left 4 Dead 2}} It detects and outputs an entity's velocity.
{{stub}}
__NOTOC__
== Keyvalues ==
{{KV Targetname}}
{{KV|Target Entity Name|intn=target|target_destination|Name of the entity whose velocity will be sensed.}}
{{KV|Measurement Axis|intn=axis|vecline|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.}}
{{KV|Start Enabled|intn=enabled|boolean|Whether or not to start enabled and active.}}
 
== Inputs ==
{{I|Enable|Enable the sensor.}}
{{I|Disable|Disable the sensor.}}
 
== Outputs ==
{{O|Velocity|Fired when the Target's Velocity changes, passing the new velocity. This may be a negative number.|param=float}}
 
== See Also ==
* {{ent|point_angularvelocitysensor}}

Latest revision as of 23:03, 20 April 2025

C++ Class hierarchy
CPointVelocitySensor
CPointEntity
CBaseEntity
C++ PointAngularVelocitySensor.cpp

point_velocitysensor is a point entity available in all Source Source games except Left 4 Dead 2 Left 4 Dead 2. It detects and outputs an entity's velocity.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
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 velocity will be sensed.
Measurement Axis (axis) <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.
Start Enabled (enabled) <boolean>
Whether or not to start enabled and active.

Inputs

Enable
Enable the sensor.
Disable
Disable the sensor.

Outputs

Velocity <floatRedirectOutput/float>
Fired when the Target's Velocity changes, passing the new velocity. This may be a negative number.

See Also