Deactivating a damage oneshot when the death oneshot plays

Any suggestions? Is there a way of doing this without setting up variables? Like a ‘if then’ type situation with the other oneshot?

I’d appreciate any help, thanks.

This seems like a question about Unity and C# programming in general. A quick fix would be to place your Hurt OneShot after the if statement and then use the return keyword after calling Death(), so it will exit the method before playing that sound again.

1 Like

Sorry I’m completely new to FMOD and Unity. I’m not sure what an if statement would look like in this context.