/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemComponent.h
Attempts to activate the ability that is passed in. This will check costs and requirements before doing so. Returns true if it thinks it activated, but it may return false positives due to failure later in activation. If bAllowRemoteActivation is true, it will remotely activate local/server abilities, if false it will only try to locally activate the ability
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Abilities") bool TryActivateAbilityByClass ( [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [UGameplayAbility](API\Plugins\GameplayAbilities\Abilities\UGameplayAbility) > InAbilityToActivate, bool bAllowRemoteActivation )