Skip to main content

Vitals Utility

Vitals Utility is a static class that provides extra functionality to help you make the most out of the Vitals System.

Public Methods

MethodParametersUsage
GetPercentageVitalsBase - Vitals ComponentReturns the percentage of the current value in relation to the max value of the Vitals Component
GetPercentagefloat - Value
float - Max Value
Returns the percentage of value in relation to the max value
IncreaseByPercentageVitalsBase - Vitals Component
float - Percentage
Percentage is a value between 0 and 1 (0.1 = 10%).

Increases the value of the Vitals Component by the given percentage
DecreaseByPercentageVitalsBase - Vitals Component
float - Percentage
Percentage is a value between 0 and 1 (0.1 = 10%).

Decreases the value of the Vitals Component by the given percentage
IncreaseMaxByPercentageVitalsBase - Vitals Component
float - Percentage
Percentage is a value between 0 and 1 (0.1 = 10%)

Increases the max value of the Vitals Component by the given percentage
DecreaseMaxByPercentageVitalsBase - Vitals Component
float - Percentage
Percentage is a value between 0 and 1 (0.1 = 10%)

Decreases the max value of the Vitals Component by the given percentage
DrainAtRateForTimeVitalsBase - Vitals Component
float - Drain Rate
float - Time
Drains the Vitals Component at the given drain rate for the given time
RegenerateAtRateForTimeVitalsBase - Vitals Component
float - Regeneration Rate
float - Time
Regenerates the Vitals Component at the given regeneration rate for the given time
IsFullVitalsBase - Vitals ComponentReturns true if the Vitals Component's current value equals the maximum value, and false if it is not
IsEmptyVitalsBase - Vitals ComponentReturns true if the Vitals Component's value is zero, and false if it is not
BindVitalsBase - Vitals Component
VitalsUIBind - Vitals UI Bind Component
Binds the value of the Vitals Component to the UI Bind component at runtime