Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UGameplayModMagnitudeCalculation
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 |
UFUNCTION (BlueprintCallable, BlueprintPure=false, Category="Ability|GameplayEffect",
Meta=(DisplayName="Get Captured Attribute Magnitude", ScriptName="GetCapturedAttributeMagnitude"))
float K2_GetCapturedAttributeMagnitude
(
const FGameplayEffectSpec & EffectSpec,
FGameplayAttribute Attribute,
const FGameplayTagContainer & SourceTags,
const FGameplayTagContainer & TargetTags
) const
Remarks
Gets the captured magnitude value for the given Attribute For this to work correctly, the Attribute needs to be added to the Relevant Attributes to Capture array The magnitude value if found, zero otherwise
Parameters
Name | Description |
---|---|
EffectSpec | The Gameplay Effect Spec to get the info from |
Attribute | The attribute to query |