It’s best to store the return value of the CreateSound2D function (the AudioComponent) as a variable. It looks like you’re trying to perform operations directly on the return value, and once you’re outside of the immediate context of the function the audio component can no longer be found.
2 Likes