GetEnemyHealthTarget

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

If an enemy's health bar is currently visible in the HUD, this function will return that actor's reference. Otherwise returns null.

Syntax

[help]
(actor:ref) GetEnemyHealthTarget

Example

if GetEnemyHealthTarget
	let rHealthBarActor := GetEnemyHealthTarget
elseif rHealthBarActor
	let rHealthBarActor := 0
endif

See Also