GetCurrentHealth

From The Elder Scrolls Construction Set Wiki

Warning: Article May Contain Errors

This article is believed to contain incorrect or misleading information. Please see the Talk page for details. If you can correct the article, please do so.

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.
This does not work. GetEquippedObject returns a Base-Object, not a Reference. There is a very important difference.

This page needs to be updated to explain that, and to provide a good example of how this function would be used. I don't have the time at the moment.

For those who are wondering, GetFirstRef/GetNextRef would be an excellent way to get references for use with this.
Dragoon Wraith TALK 00:06, 8 December 2008 (EST)

Personal tools