Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/FGameplayEffectCustomExecutionPa-
Description
Attempts to calculate the magnitude of a captured attribute given the specified parameters. Can fail if the gameplay spec doesn't have a valid capture for the attribute.
| Name | AttemptCalculateCapturedAttributeMagnitude |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectExecutionCalculation.h |
| Include Path | #include "GameplayEffectExecutionCalculation.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffectExecutionCalculation.cpp |
bool AttemptCalculateCapturedAttributeMagnitude
(
const FGameplayEffectAttributeCaptureDefinition & InCaptureDef,
const FAggregatorEvaluateParameters & InEvalParams,
float & OutMagnitude
) const
True if the magnitude was successfully calculated, false if it was not
Parameters
| Name | Remarks |
|---|---|
| InCaptureDef | Attribute definition to attempt to calculate the magnitude of |
| InEvalParams | Parameters to evaluate the attribute under |
| OutMagnitude | [OUT] Computed magnitude |