Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UAbilitySystemComponent
Description
Returns the current value of the given gameplay attribute, or zero if the attribute is not found. NOTE: This doesn't take predicted gameplay effect modifiers into consideration, so the value may not be accurate on clients at all times.
| Name | GetGameplayAttributeValue |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemComponent.h |
| Include Path | #include "AbilitySystemComponent.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemComponent.cpp |
UFUNCTION (BlueprintPure, Category="Gameplay Attributes")
float GetGameplayAttributeValue
(
FGameplayAttribute Attribute,
bool & bFound
) const
Parameters
| Name | Remarks |
|---|---|
| Attribute | The gameplay attribute to query |
| bFound | Set to true if the attribute exists in this component |