/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemComponent.h
Sets an ability spec to remove when its finished. If the spec is not currently active, it terminates it immediately. Also clears InputID of the Spec.
void SetRemoveAbilityOnEnd ( [FGameplayAbilitySpecHandle](API\Plugins\GameplayAbilities\FGameplayAbilitySpecHandle) AbilitySpecHandle )