GetCurrentHealth

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns the current health (condition) of the calling reference. Used for item condition, such as for armors/weapons.

Also works on destructible objects. Returns 0 if the reference cannot have health.

Syntax

[help]
(float) reference.GetCurrentHealth

Example

float ItemHealth
set ItemHealth to ItemRefr.GetCurrentHealth 

Notes

  • If this function is used on an actor, it will always return their base health. To get an actor's current health, use `GetActorValue Health` instead.

See Also