HudBarSetValueFloat

From GECK
Jump to: navigation, search
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.

Description

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

Syntax

[help]
(success:int) HudBarSetValueFloat barName:string MaxValue:float 

Or:

(success:int) HBSetValueFloat barName:string MaxValue:float

Example

HudBarSetValueFloat "BarName" 30

Will pass Value 30 to the Bar.

Notes

  • If your bar is of types 0,1,2,4. - Percentage shown will be calculated according to MaxValue by this formula: Value/<MaxValue>.
  • If your bar is of type 3 - This will set raw value to the bar i.e. "Your MaxValue is 100, Value you set is 30, "Type 3 Bar will show:: 30/100".

See Also