Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UAbilitySystemComponent
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemComponent.h |
| Include | #include "AbilitySystemComponent.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemComponent_Abilities.cpp |
UFUNCTION&40;BlueprintCallable, BlueprintAuthorityOnly, Category&61;"Gameplay Abilities",
Meta&61;&40;DisplayName&61;"Give Ability", ScriptName&61;"GiveAbility"&41;&41;
FGameplayAbilitySpecHandle K2_GiveAbility
&40;
TSubclassOf< UGameplayAbility > AbilityClass,
int32 Level,
int32 InputID
&41;
Remarks
Grants a Gameplay Ability and returns its handle. This will be ignored if the actor is not authoritative.
Parameters
| Name | Description |
|---|---|
| AbilityClass | Type of ability to grant |
| Level | Level to grant the ability at |
| InputID | Input ID value to bind ability activation to. |