HudBarSetMeterTrait

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Sets the value for a Bar's Meter Trait. Returns 1 for success, -1 for failure. See Notes for possible Meter Trait values.

Syntax

[help]
(success:int) HudBarSetMeterTrait barName:string Trait:int Value:float/int 

Or:

(success:int) HBSetMeterTrait barName:string Trait:int Value:float/int

Example

HudBarSetMeterTrait "BarName" 2 1

Will set "Show Max Value" to 1

Notes

Number Meter Trait Description
0 AlphaMinValue Value which will be set when meter percentage is 0%. By default - 0.
1 AlphaMaxValue Value which will be set when meter percentage is 100%. By default -255.
2 Show Max Value 1 - Displayes Max Value in type 3 Meter, 0 - Will not display max value in type 3 meter
3 Minimum Width Minimum width for Type 5 Meter.
4 Max Width Max width for Type 5 Meter.
5 Minimum Height Minimum height for Type 5 Meter.
6 Max Height Max height for Type 5 Meter.

See Also