Regeneration
The Regeneration of a Progress Stat can increase or decrease its Final Value over time.
It is initialized through its details panel.
Details Panel
In this example for my Health Progress Stat, the regeneration is the HealthRegen (Complex Stat) value, applied every time "MyRegenerationTimer"
ticks.
"Regeneration Value Is Per Second" means that, on each tick of the timer, the regeneration value will take into account the Delta Time of the
timer so that the HealthRegen value is the amount applied per second:
RegenAppliedPerTick = DeltaTime * RegenValue
"Allowed Regen Type" allows you to constrain your regen to a Positive or Negative value.
For the Regeneration Timer, see Shared Timers.
Pausing the Regeneration
You can manually pause and unpause the regeneration using PauseRegeneration() and UnpauseRegeneration().
You can get the current pause state of the regeneration using IsRegenerationPaused().
Additional functions
You can find additional functions in the "Regeneration" category in the functions browser.
Delegate
Whenever a regeneration value is applied, it will trigger the OnRegenerationApplied delegate.
Manually apply the regeneration
If you want to manually apply the regeneration (e.g. if you're using your own timer, or for a turn-based game), you can use ApplyRegeneration() or ApplyTickRegeneration().
ApplyRegeneration() will simply apply the regeneration value.
ApplyTickRegeneration() will apply the regeneration value, using the DeltaTime if the
"Regeneration Is Per Second" property is true.