x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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).

Product Version: UE 4.17
Tags:
more ▼

asked Jan 21 '18 at 09:23 PM in Blueprint Scripting

avatar image

arktisvodka
3 3 9

avatar image arktisvodka Jan 21 '18 at 09:24 PM

alt text

alt text

Same pictures.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

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.

more ▼

answered Jan 22 '18 at 12:08 AM

avatar image

xlar8or
6k 161 129 304

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

alt text

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!

sieppaa.png (314.5 kB)
more ▼

answered Jan 22 '18 at 09:48 PM

avatar image

arktisvodka
3 3 9

avatar image xlar8or Jan 22 '18 at 09:58 PM

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 :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Jan 23 '18 at 12:25 PM

avatar image

arktisvodka
3 3 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question