Difference between revisions of "GetCurrentHealth"

Jump to navigation Jump to search
740 bytes added ,  00:06, 8 December 2008
no edit summary
imported>WereWolf
imported>DragoonWraith
Line 1: Line 1:
{{errors}}
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]


Line 11: Line 12:
  set Weapon to player.[[GetEquippedObject]] 16
  set Weapon to player.[[GetEquippedObject]] 16
  set WeaponHealth to Weapon.GetCurrentHealth
  set WeaponHealth to Weapon.GetCurrentHealth
Get the current health of the player's equipped weapon.
<s>Get the current health of the player's equipped weapon.</s><br />
'''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.<br />
[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 00:06, 8 December 2008 (EST)


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

Navigation menu