GetCurrentHealth

Revision as of 15:32, 9 September 2007 by imported>WereWolf (Add example)

A command for Oblivion Script Extender

Returns the current health of the calling reference.

Syntax:

(health:float) reference.GetCurrentHealth

Example:

ref Weapon
float WeaponHealth
set Weapon to player.GetEquippedObject 16
set WeaponHealth to Weapon.GetCurrentHealth

Get the current health of the player's equipped weapon.