Trigger proximity: Difference between revisions
Jump to navigation
Jump to search
m (→Outputs) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{base brush|trigger_proximity}} | {{base brush|trigger_proximity}} It 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}} | {{code class|CTriggerProximity|trigger.cpp}} | ||
Line 21: | Line 17: | ||
{{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}} | {{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}} | ||
{{sensor brush}} |
Revision as of 16:25, 28 July 2011
Template:Base brush It 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.
|