GameplayEffects & Stats - MassiveMiniteam/OddModKit GitHub Wiki

StatsComponent

The Stats Component holds mappings of GameplayTags to FFixed values. The component takes care of their base values and additional modifiers.

grafik

The StatsComponent also manages GameplayEffects and has functions to apply and remove them.

Stat Values can also be interpreted as boolean if their value is ≠ 0.

Since this component also handles the health of SimulationActors, it also has an OnDeadStateTriggered event.

GameplayEffects

GameplayEffects are similar to Unreals implementation. You can apply an effect via the StatsComponent.

You can specify the duration in seconds. 0 means instant effect (that also gets removed immediately) and -1 means infinite duration.

The most basic GameplayEffect modifies a Stats value. For example a slow just adds a multiplier to the MovementSpeed stat for a certain duration.