SetWeaponHealthPerc

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Sets the current condition (health) of an actor's currently equipped weapon.

Syntax

[help]
[actor:ref].SetWeaponHealthPerc healthCondition:float

Example

BruceRef.SetWeaponHealthPerc 50

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

Notes

  • 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