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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I make multiple ai play a sound cue? (Problem)

Say a group of 4 AI are following each other. One man dies, Only one guy should say something, but instead for me, all of them say something. And for bonus cookies, maybe one other guy should reply, but again, they all say the same thing. (How do you make AI reply to each other?) It sounds kinda dumb, but I like having these kind of AI. (Yeah I know, the question title doesn't really follow along with this)

Product Version: Not Selected
Tags:
more ▼

asked Aug 05 '14 at 09:06 PM in Blueprint Scripting

avatar image

FusionSticc
17 14 16 17

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

1 answer: sort voted first

How are you executing the sequence which makes them play the die sound? You could make bots reply to each other a few different ways. I would like to understand how you are currently setup so that I can better assist you.

Peace

more ▼

answered Aug 05 '14 at 10:26 PM

avatar image

PeterLNewton
2.1k 75 37 111

avatar image FusionSticc Aug 05 '14 at 10:32 PM

Oh, okay. So it was actuall real simple, but i setted up (this is not the die sound) in the behavior tree, so when the ai is in its attacking state it would play a sound (yeah that simple), however what I need assist on, is how to stop making all the ai (using the same behavior tree) play the sound, but instead only wanting one ai to play it. I am quite new to the behavior tree thing.

avatar image FusionSticc Aug 05 '14 at 10:32 PM

as for the reply thing I have no clue. :D

avatar image PeterLNewton Aug 05 '14 at 11:37 PM

I need you to show me exactly how you are doing it. Show me some screenshots of the steps it goes through in-order to commit this action. Thanks!

avatar image FusionSticc Aug 05 '14 at 11:43 PM

oh my bad alt text this should be it

picture1.png (299.9 kB)
avatar image PeterLNewton Aug 06 '14 at 06:00 AM

This seems to play the sound when they attack. I thought you were saying they all played a sound when one died?

avatar image FusionSticc Aug 06 '14 at 06:02 AM

yeah I said that, but it does it too both, I DID have a dying sound, but then I deleted it for no reason, but either way, I had the same problem with both.

avatar image PeterLNewton Aug 06 '14 at 06:45 AM

If your AI finds an enemy, it continues playing the sound you put within the behavior sub tree. To have them play at different times they would theoretically have to start attacking the enemy at separate times. If they're next to each other, they'll likely find the enemy at the same thus play the sound at the same time. Now even though they all use the same behavior tree, they all use separate instances of the information. Its not possible for one to manipulate the other by default.

The solution is creating some randomness. A simple way is to add more Random Deviation to the service that controls your A.I. Another is to create a task similar to wait with variables that will randomly delay a sequence.

alt text

solutions.png (90.1 kB)
avatar image FusionSticc Aug 06 '14 at 07:23 AM

Thanks for teh help Silent!

avatar image FusionSticc Aug 06 '14 at 07:26 AM

Also, about the death thing, I forgot how I made the AI play the sound when thier "friend" is dead. I searched a hole bunch of fucntions in blueprint, but nothing I remember, could you possibly help me on that ( I understand if you don't have time or don't want to, and please, if you do decide to, do it on your free time please, don't like rushing people.........) edit I just remembered, you said something about AI replying to each other, maybe you could tell ME YOUR SECRETS :D

avatar image Duncan Dam Aug 06 '14 at 02:49 AM

I think you can give each AI like index number 0 to 3, when 1 die for example 0, you random number index 1 to 3 who will talk first, say 1 will talk, then the next one say will be random between 2 or 3. You can keep track who just talk then skip him for next conversation.

avatar image FusionSticc Aug 06 '14 at 02:51 AM

Thanks for all replies, I'll try this now!

avatar image FusionSticc Aug 06 '14 at 03:22 AM

oh, one more thing, what do you mean index numbers? Like, is it in blueprinte scripting, behavior trees, because I haven't doen any kind of indexing in unreal, or atleast haven't seen it

avatar image FusionSticc Aug 06 '14 at 04:36 AM

Sorry, yeah I know its too much to ask but, how do I make ai follow other ai?

(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