Difference between revisions of "SetEquippedCurrentHealth"
Jump to navigation
Jump to search
imported>WereWolf (New page: A command for Oblivion Script Extender Sets the current health of the object in the specified equipment slot. '''Syntax:''' (nothing) ''reference....) |
imported>WereWolf |
||
(2 intermediate revisions by the same user not shown) | |||
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:''' | |||
(nothing) ''reference.''SetEquippedCurrentHealth nuHealth:long slot:short | |||
Sets the current health of the object in the specified equipment slot. | Sets the current health of the object in the specified equipment slot. | ||
''' | '''Example:''' | ||
player.SetEquippedCurrentHealth 100 16 | |||
Set the health of the player's equipped weapon to 100. | |||
{{OBSE_SLotIDs}} | {{OBSE_SLotIDs}} |
Latest revision as of 13:21, 14 September 2007
A command for Oblivion Script Extender
Syntax:
(nothing) reference.SetEquippedCurrentHealth nuHealth:long slot:short
Sets the current health of the object in the specified equipment slot.
Example:
player.SetEquippedCurrentHealth 100 16
Set the health of the player's equipped weapon to 100.
Slot IDs[edit source]
armor/clothing 0 head 1 hair 2 upper body 3 lower body 4 hand 5 foot 6 right ring 7 left ring 8 amulet 13 shield 14 torch 15 tail 18 lower and upper body 19 lower and upper and foot 20 lower, upper, hand and foot 21 lower, upper, and hand 22 upper and hand 255 no slot weapon/ammo 16 weapon 17 ammo
Special return values are used for getting the Equipment Type (Value Type 3) in GetOV, GetCV, GetEOV and GetECV
Special return values 18 both lower and upper body (robes)
Reserved values are currently nonfunctional and/or obsolete.
reserved 9 (weapon) 10 (back weapon) 11 (side weapon) 12 (quiver)