object_get_distance
Description
Writes the distance between two objects into an out-variable.
Parameters
<object_a> <object_b> <distance_out (feet)>
<name>— required operand{a|b|c}— choose one alternative[ … ]— optional clause
Example
megalo
action object_get_distance current_object current_player distance_to_playerExample from HREK broken/slayer-revenant.txt.
Supported Versions
| Version | Supported |
|---|---|
| 49 | Yes |
| 73 | Yes |
| 106 | Yes |
| 107 | Yes |
| 107 (MCC) | Yes |
See also action syntax.