Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
Include |
#include "GameplayEffect.h" |
Source |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffect.cpp |
bool AttemptCalculateMagnitude
(
const FGameplayEffectSpec & InRelevantSpec,
OUT float & OutCalculatedMagnitude,
bool WarnIfSetByCallerFail,
float DefaultSetbyCaller
) const
Attempts to calculate the magnitude given the provided spec. May fail if necessary information (such as captured attributes) is missing from the spec.
True if the calculation was successful, false if it was not
Parameter |
Description |
---|---|
InRelevantSpec |
Gameplay effect spec to use to calculate the magnitude with |
OutCalculatedMagnitude |
[OUT] Calculated value of the magnitude, will be set to 0.f in the event of failure |