Difference between revisions of "GetCurrentHealth"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(Add example)
imported>WereWolf
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
'''Syntax:'''
(health:float) ''reference.''GetCurrentHealth


Returns the current health of the calling reference.
Returns the current health of the calling reference.


'''Syntax:'''
(health:float) ''reference.''GetCurrentHealth
'''Example:'''
'''Example:'''
  ref Weapon
  ref Weapon

Revision as of 13:21, 14 September 2007

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.