FAggregatorModChannel::AddMod

Add a modifier to the channel

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectAggregator.h

Include

#include "GameplayEffectAggregator.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffectAggregator.cpp

Syntax

void AddMod
(
    float EvaluatedMagnitude,
    TEnumAsByte< EGameplayModOp::Type > ModOp,
    const FGameplayTagRequirements * SourceTagReqs,
    const FGameplayTagRequirements * TargetTagReqs,
    bool bIsPredicted,
    const FActiveGameplayEffectHandle & ActiveHandle
)

Remarks

Add a modifier to the channel

Parameters

Parameter

Description

EvaluatedMagnitude

Magnitude of the modifier

ModOp

Operation of the modifier

SourceTagReqs

Source tag requirements of the modifier

TargetTagReqs

Target tag requirements of the modifier

bIsPredicted

Whether the mod is predicted or not

ActiveHandle

Handle of the active gameplay effect that's applying the mod