GameplayEffectUtilities::ComputeStackedModifierMagnitude

Helper function to compute the stacked modifier magnitude from a base magnitude, given a stack count and modifier operation

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayEffectTypes.h"

Source

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

Syntax

namespace GameplayEffectUtilities
{
    float GameplayEffectUtilities::ComputeStackedModifierMagnitude
    (
        float BaseComputedMagnitude,
        int32 StackCount,
        EGameplayModOp::Type ModOp
    )
}

Remarks

Helper function to compute the stacked modifier magnitude from a base magnitude, given a stack count and modifier operation

Returns

Computed modifier magnitude with stack count factored in

Parameters

Parameter

Description

BaseComputedMagnitude

Base magnitude to compute from

StackCount

Stack count to use for the calculation

ModOp

Modifier operation to use

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