Character voice UI widget (multiple sounds)

This can be a little “rookie” -level question but how you can make character say/shout commands and orders to other players?

So i made widget, that pop-up’s an canvas to player screen (when you press X) and disappears when you press it again. If the box is “shown”, i want to give different sound by different buttons (numbers 1-7).

So I have to made Sound Cue, that the voices doesn’t sound similar.

The sounds can be hear also in enemy team, so maybe “NaturalSound”?

In my head it goes like this but I cant add anymore key inputs.

If someone knows easier way to do this i would appreciate that:)

TL;DR: I want radio command box just like in CS:GO (with a little differences).

Same pictures.

Hey there you cant really do in the X input because that only happens once you press the key. My suggestion is to have 7 input events, from 1 to 7, then you need to check if Voice Commands is valid, if it is then the menu is created and in the viewport, so just play the corresponding sound. Make sure to set Voice Commands to None once you close the menu.

There are a few things there that could be improved. You shouldnt execute the Delay / Remove from parent when the Is valid fails, because it would give you an error. Instead of the doonce i would maybe do it with a Set Timer and use the timer handle to see if it’s executing to prevent multiple sounds being played, but if that works for you great. If it’s fixed please mark my answer as correct to close it :slight_smile:

Hello, I came up something like this. Thanks for advice!
Now, only thing, when I change weapon it gives a command accidentally but only once (beginning of the game)!
Those little macros includes “play sound at location” with sound cue, with different voices. Health is there because the char would yell after death too. If you or someone got other in mind to mention, feel free to reply!

Thanks again!

Thanks! This works fine but I’ll have to try your idea also!