Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UGameplayModMagnitudeCalculation
References
Module | GameplayAbilities |
Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayModMagnitudeCalculation.h |
Include | #include "GameplayModMagnitudeCalculation.h" |
Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayModMagnitudeCalculation.cpp |
virtual FOnExternalGameplayModifierDependencyChange * GetExternalModifierDependencyMulticast
(
const FGameplayEffectSpec & Spec,
UWorld * World
) const
Remarks
If the magnitude resultant from the custom calculation depends on game code-specific conditions that are not under the purview of the ability system, this method should be overridden to provide a multicast delegate that will fire when the reliant conditions change, so that the magnitude can be recalculated and updated. Multicast delegate that will fire when this calculation's external dependencies change, if any
Parameters
Name | Description |
---|---|
Spec | Gameplay effect spec that is requesting the delegate |
World | UWorld that is requesting the delegate |