Trigger proximity: Difference between revisions
Jump to navigation
Jump to search
m (Cleanup) |
m (→Outputs) |
||
Line 19: | Line 19: | ||
==Outputs== | ==Outputs== | ||
{{IO|NearestEntityDistance|Fired continuously when entities are touching the trigger volume. The output parameter is the distance from the |param=integer}} | {{IO|NearestEntityDistance|Fired continuously when entities are touching the trigger volume. <br/>The output parameter is the distance from the Point to Measure From to the nearest entity that passed the trigger filters. <br/>The distance is mapped to the radius distance, so it will be 0 when the entity is on the point, and 1 when the entity is at the edge of the radius.|param=integer}} | ||
{{O Trigger}} | {{O Trigger}} |
Revision as of 07:56, 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 Point to Measure From to the nearest entity that passed the trigger filters.
The distance is mapped to the radius distance, so it will be 0 when the entity is on the point, and 1 when the entity is at the edge of the radius.
|