Announcement

Collapse
No announcement yet.

How do i play sound to a specific player

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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

    #2
    Well, you could play sound 3d at the location of each player but anyone in their range can hear that too...

    you could however attenuate the sound with a shape to be contained within the player capsule component size.
    https://docs.unrealengine.com/en-US/...ion/index.html

    That's all I can think of, maybe someone can offer better answers on this...

    Comment


      #3
      Originally posted by MostHost LA View Post
      Well, you could play sound 3d at the location of each player but anyone in their range can hear that too...

      you could however attenuate the sound with a shape to be contained within the player capsule component size.
      https://docs.unrealengine.com/en-US/...ion/index.html

      That's all I can think of, maybe someone can offer better answers on this...
      alright. i will try that. tnx man

      Comment

      Working...
      X