Hello!
I have modified the First person controller class to have a jump and sprint function, and it is working well in regards to functionality.
When the player lands there is a sound effect played, likewise when the player begins to sprint.
The issue is whenever the landing sound is played, it is stopped halfway through and the sprint sound begins to play.
How do I allow the landing sound to finish playing while the sprint sound begins to play?
Is this even an option with the audio component attached to the player?
How do I achieve this?
EDIT: I forgot the code like a goober
if (SprintSound != NULL && bHasPlayedSprintSound == false)
{
bHasPlayedSprintSound = true;
AudioComponent->SetSound(SprintSound);
AudioComponent->Play();
}
I also play my other sounds using the SetSound() and Play() functions on the component.
Thank you!