HudBarSetValuePercentage
From GECK
This article is incomplete. You can help by filling in any blank descriptions. Further information might be found in a section of the discussion page. Please remove this message when no longer necessary. |
A function added by the SUP NVSE Plugin.
Contents
Description
Sets percentage value for a Bar's Trait. Returns 1 for success, -1 for failure. See Notes for possible Trait values.
Syntax
(success:int) HudBarSetValuePercentage barName:string fPercentage:float
Or:
(success:int) HBSetValuePercentage barName:string fPercentage:float
Example
HudBarSetValuePercentage "BarName" 0.4
This will set bar percentage to 40% for Bar types of 0,1,2,4.
Notes
- Percentage should be value in this range (0.00-1.00). If your value is out of these range it will be normalized.
- This command will not work for Bar type of 3 because it has not percenatages but your raw value.
See Also
- HudBarSetValueFloat
- HudBarSetValueMax
- HudBarSetValueScriptVar
- HudBarSetValueUDF
- ... and more in the SUP HUD Bar Functions category.