Prevent sound to stop being played when destroyed? [C++]

Hello!

I have created a coin class that when being overlapped plays a coin sound using a UAudioComponent and then is destroyed.

audioComponent->Play();
Destroy();

The problem is that since the coin is destroyed the coin sound can’t be played. So I was wondering if there is any easy/smart way for the coin sound to finish playing even if the object is destroyed?

Any help is appreciated, thanks!

Using UGameplayStatics::PlaySound2D solved this