Difference between revisions of "SetWeaponHealthPerc"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Kkuhlmann
 
imported>MadCat221
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
=='''Syntax'''==
=='''Syntax'''==


  SetWeaponHealthPerc [''ActorREF''] [''Value'']
  SetWeaponHealthPerc [''Value'']


=='''Examples'''==
=='''Examples'''==


  SetWeaponHealthPerc BruceRef 50
  BruceRef.SetWeaponHealthPerc 50


Sets the base condition of Bruce's currently equipped weapon to 50%.
Sets the base condition of Bruce's currently equipped weapon to 50%.


=='''Notes'''==
=='''Notes'''==
*None at this time.
*In Fallout: New Vegas, this command is hardcoded not to increase condition beyond 99.83%.  This is a workaround for a bug concerning odd results for calculations with the condition at a full 100%.


=='''See Also'''==
=='''See Also'''==
Line 21: Line 21:


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Object Functions]]
[[Category:Object Functions]]
[[Category:Object Functions (GECK 1.1)]]

Latest revision as of 18:04, 10 July 2011

Description[edit | edit source]

SetWeaponHealthPerc sets the base condition (health) of an actor's currently equipped weapon.

Syntax[edit | edit source]

SetWeaponHealthPerc [Value]

Examples[edit | edit source]

BruceRef.SetWeaponHealthPerc 50

Sets the base condition of Bruce's currently equipped weapon to 50%.

Notes[edit | edit source]

  • In Fallout: New Vegas, this command is hardcoded not to increase condition beyond 99.83%. This is a workaround for a bug concerning odd results for calculations with the condition at a full 100%.

See Also[edit | edit source]