GetCurrentHealth

From the Oblivion ConstructionSet Wiki
Revision as of 13:21, 14 September 2007 by imported>WereWolf
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

(health:float) reference.GetCurrentHealth

Returns the current health of the calling reference.

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.