Point velocitysensor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleanup)
m (Explained Measurement Axis and added that output number may be negative)
Line 3: Line 3:
== Keyvalues ==
== Keyvalues ==
{{KV|Target Entity Name|target_destination|Name of the entity whose velocity will be sensed.}}
{{KV|Target Entity Name|target_destination|Name of the entity whose velocity will be sensed.}}
{{KV|Measurement Axis|vecline}}
{{KV|Measurement Axis|vecline|Defines a vector originatimg 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 vecor is irrelevant to the calculation.}}
{{KV|Start Enabled|boolean|Whether or not to start enabled and active.}}
{{KV|Start Enabled|boolean|Whether or not to start enabled and active.}}
{{KV Targetname}}
{{KV Targetname}}
Line 13: Line 13:


== Outputs ==
== Outputs ==
{{IO|Velocity|Fired when the Target's Velocity changes, passing the new magnitude of the velocity.|param=float}}
{{IO|Velocity|Fired when the Target's Velocity changes, passing the new velocity. This may be a negative number.|param=float}}
{{O Targetname}}
{{O Targetname}}

Revision as of 17:40, 30 November 2012

Template:Base point 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 originatimg 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 vecor is irrelevant to the calculation.
Start Enabled ([todo internal name (i)]) <boolean>
Whether or not to start enabled and active.
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

Inputs

Enable
Enable the sensor.
Disable
Disable the sensor.


Outputs

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