widget.set_meter_params

This function sets whether a HUD widget displays as a meter (with its text serving as a label) and if so, the displayed value of the meter.

Arguments

type

One of the following types:

none
Does not display a meter.
timer
Displays the value of a timer relative to its initial value.
number
Displays a fraction..

If you specify timer, then you must pass a timer variable as an additional argument. If you specify number, then you must pass two number variables (a current value and a maximum) as additional arguments.

Example

script_widget[0].set_meter_params(none)
script_widget[1].set_meter_params(timer, global.timer[0])
script_widget[2].set_meter_params(number, 50, 100)