object.set_waypoint_range
Change the distances at which waypoints are visible.
Arguments
- min
The minimum distance at which the player is able to see the waypoint: they cannot see it if they get any closer. Positive values are limited to 100. All values below zero are treated as a sentinel value.
- max
The maximum distance at which the player is able to see the waypoint: they cannot see it if they're any further away. Positive values are limited to 100. All values below zero are treated as a sentinel value.
Example
for each object with label "koth_hill" do current_object.set_waypoint_range(0, 50) end
Notes
If the context object doesn't exist, then this function does nothing. It's safe to call this function without checking whether the object variable you're using is no_object.
Most Megalo functions that work with distances use a value of 1 to represent one tenth of a Forge unit. However, this function uses a value of 1 to represent one entire Forge unit. Be mindful of the difference when using this function together with the others.