Have you checked the actual unreal documentation for gameplay abilities? Using Gameplay Abilities in Unreal Engine | Unreal Engine 5.0 Documentation
You need to create a new class that derives from UGameplayAbility.
Have you checked the actual unreal documentation for gameplay abilities? Using Gameplay Abilities in Unreal Engine | Unreal Engine 5.0 Documentation
You need to create a new class that derives from UGameplayAbility.