UGameplayModMagnitudeCalculation::GetExternalModifierDependencyMulticast

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.

Windows
MacOS
Linux

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

Syntax

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.

Returns

Multicast delegate that will fire when this calculation's external dependencies change, if any

Parameters

Parameter

Description

Spec

Gameplay effect spec that is requesting the delegate

World

UWorld that is requesting the delegate

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss