Download

How do i play sound to a specific player

in my script, my goal is that each of character bp in the game sends info to the base flag bp array on which team he is in. there are two teams A and B. when Team, A captures the base. it will only inform the team who captures it. so only team A. after that it will do foreachloop for each characters in team A and in character blueprint is where to playsound.

i did playsound 2d. but it plays to all players. i tested in spilt screen. so i tested it in apply damage. it works perfectly. it only applies damage only to one team. so i was thinking maybe play sound 2d is kinda plays to all players? is there a better method? so here’s the code