Triggers based on distance. Ranger casts a ray starting at the location of the parent model, in the direction of the red positional arrow. Distance is the max length of the ray. Compare is the distance you want to compare to using an operator. The event shows a distance preview while editing.
Ranger set to above will hide attached parts when the distance to an object is higher than compare.
Ranger set to below will hide attached parts when the distance to an object is lower than compare.
This behavior can be inverted by using invert.
name | type | description |
---|---|---|
number | The max length of the ray. Needs to be higher than compare. The actual value only matters when using npcs_and_players_only (BUG?). | |
boolean | Ignores world collision. Only triggers when a player or an NPC is detected. | |
number | The number that you want to compare the distance to. |
Set distance to 200, compare to 100, operator to above, the event will trigger when an object appears closer than 100 units away from you.
Download: event_ranger.txt