point_velocitysensor

From Source Entities
Jump to navigation Jump to search

Code classes:

point_velocitysensor is a point entity present in all games except L4d2-small.pngLeft 4 Dead 2. It records the velocity of an entity.

Keyvalues[edit | edit source]

Target Entity Name (target) <target_destination>
Entity whose velocity will be sensed.
Measurement Axis (axis) <vecline>
Axis to measure movement along. If the line points east, the entity does not record up/down movement or north/south movement.
Start Enabled (enabled) <boolean>
Start enabled?

Inputs[edit | edit source]

Enable
Makes the entity active.
Disable
Makes the entity inactive.

Outputs[edit | edit source]

Velocity <float>
Fires when the Target Entity's velocity changes. Automatically puts the object's new velocity as the input parameter, unless overridden by the mapper.