Skip to content

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_player

Example from HREK broken/slayer-revenant.txt.

Supported Versions

VersionSupported
49Yes
73Yes
106Yes
107Yes
107 (MCC)Yes

See also action syntax.