Trigger proximity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{base brush|trigger_proximity}} | ||
{{ | {{sensor brush}} | ||
==Entity Description== | ==Entity Description== | ||
Measures the distance of the player within the [[trigger]] volume from a given point (and within a given radius). The ''NearestPlayerDistance'' output will be 0 when the player is at the center point, and 1 when the player is at the radius. | Measures the distance of the player within the [[trigger]] volume from a given point (and within a given radius). The ''NearestPlayerDistance'' output will be 0 when the player is at the center point, and 1 when the player is at the radius. | ||
{{ | {{code class|CTriggerProximity|trigger.cpp}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Point to Measure From|target_destination|The name of a target entity who's origin is the point to measure the player's distance from.}} | |||
{{KV|Radius to measure within|string|The radius to which the distance should be mapped. If the player is outside the radius he will be ignored.}} | |||
{{KV Trigger}} | |||
==Flags== | ==Flags== | ||
{{Fl Trigger}} | |||
==Inputs== | ==Inputs== | ||
{{I Trigger}} | |||
==Outputs== | ==Outputs== | ||
{{IO|NearestEntityDistance|Fired continuously when entities are touching the trigger volume. The output parameter is the distance from the |param=integer}} | |||
{{O Trigger}} | |||
Revision as of 07:54, 3 June 2011
Entity Description
Measures the distance of the player within the trigger volume from a given point (and within a given radius). The NearestPlayerDistance output will be 0 when the player is at the center point, and 1 when the player is at the radius.
Keyvalues
- Point to Measure From ([todo internal name (i)]) <targetname>
- The name of a target entity who's origin is the point to measure the player's distance from.
- Radius to measure within ([todo internal name (i)]) <string>
- The radius to which the distance should be mapped. If the player is outside the radius he will be ignored.
|
Flags
|
Inputs
|
Outputs
- NearestEntityDistance <integer >
- Fired continuously when entities are touching the trigger volume. The output parameter is the distance from the
|