![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Allows an ability to apply a stat change to the player (see PlayerStat, StatModifier, and PlayerStatHolder). Which stat to change and by how much can be changed in the editor. Examples of StatsAE scriptable objects can be found here: Ability Effect.
Documentation updated 8/13/2024
Public Member Functions | |
override void | Apply (AbilityOwner abilityOwner) |
Get player stats holder and add statMod to it. Then invoke the health change. | |
override void | Disable (AbilityOwner abilityOwner) |
Get player stats holder and remove statMod from it. Then invoke the health change. | |
![]() | |
void | Apply (AbilityOwner abilityOwner) |
Run by the ability info object when the ability is activated. Must be filled in to instantiate. | |
Public Attributes | |
StatModifier | statMod |
Reference to the stat modifier we want to use. | |
Private Member Functions | |
void | Awake () |
Set AbilityEffectType to Immediate. | |
Additional Inherited Members | |
![]() | |
AbilityEffectType | AbilityEffectType [get, set] |
Determines how the effect should be applied. | |
override void StatsAE.Apply | ( | AbilityOwner | abilityOwner | ) |
Get player stats holder and add statMod to it. Then invoke the health change.
abilityOwner |
|
private |
Set AbilityEffectType to Immediate.
|
virtual |
Get player stats holder and remove statMod from it. Then invoke the health change.
abilityOwner |
Reimplemented from AbilityEffect.
StatModifier StatsAE.statMod |
Reference to the stat modifier we want to use.