How Play 2 KIND OF Sound in 1 actor (Doors)

Hey everyone , actually i’m Following the Course of Learn c++ and make game and i Finished the Building Escape course , and now i m trying to personlize my world , but actually i want to Play 2 kind of sound for open and close doors like :

when i open doors i play the sound one : open sound
when i close de doors i play the sound two : close sound

So my question is how can i set the Audio Component to play when we have 2 in Actor

for information the open doors sound and close door sound is different.

i think is SetSound(UsoundBase * NewSound) but unfortunately i don’t know how i use this founction ?

Privacy & Terms