Skip to content

object_get_health

Description

Reads an object's current health into an out-variable.

Parameters

<object> <vitality_out (percent)>

  • <name> — required operand
  • {a|b|c} — choose one alternative
  • [ … ] — optional clause

Example

megalo
action object_get_vitality current_object helf

Example from HREK broken/1Flag_Boneyard.txt.

Supported Versions

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

See also action syntax.