Skip to main content

Stats

Stats are UObject subclasses with a Final Value.

There are three types of Stats:

  • Stat Base (or Stat): Cannot be used directly but defines the shared functionalities between Complex and Progress Stats (Final Value, Infos, Clamping, etc.).

  • Progress Stat: Typically a Stat that fluctuates within boundaries, doesn't need detailed values and may feature regeneration (e.g. Health, Mana, Stamina, etc.).

  • Complex Stat: Used for all other scenarios. Includes a Value Sets Manager (e.g. Agility, MaximumHealth, Level, etc.). This is the Stat you'll be using most of the time.

info

All Stat Base functions (all functions that are not related to Complex or Progress Stat) can be called directly from the StatsComponent (and therefore the Owner Actor), in which case they'll be named "Stat + Function Name".

Example: