Difference between revisions of "GetCurrentHealth"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(New page: A command for Oblivion Script Extender Returns the current health of the calling reference. '''Syntax:''' (health:float) ''reference.''GetCurrentH...)
 
imported>WereWolf
(Add example)
Line 5: Line 5:
'''Syntax:'''
'''Syntax:'''
  (health:float) ''reference.''GetCurrentHealth
  (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.


[[Category:Functions]]
[[Category:Functions]]

Revision as of 15:32, 9 September 2007

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.