engineering fundamentals Discussion Forum
Directory | Career | News | Industrial
Home Membership Magazines Forum Search Member Calculators

Materials

Design

Processes

Units

Formulas

Math
List Recent Topics | Start a New Topic

Message No. 22719, Started by adamlevine on 06/18/18

I want to do that my AI bots can hear sounds and eventually react to it. For example you walk near a bot, he does not see you, but he can hear your footsteps and then eventually go to the source of the footsteps until he sees you, or same if he hears a shot.

What would be the best approach? In chat Jeff suggested a good way would be to keep all the AI players in an array list and every time a sound is played it checks if any of the AI players is in range and if so, have an extra function that eventually makes them react to it.

Has anyone done something like this yet?

 

há h?ng

Reply | Start a New Topic | List Recent Topics
 

Follow-up Messages (3)
Final note since I omitted the portion about the AI reacting to the directi...
No. 22744, Posted by AGlick on 09/11/18, 04:46 PST.
I forgot to mention as well, though it should be common sense. The AI entit...
No. 22743, Posted by AGlick on 09/10/18, 10:05 PST.
If you are talking about AI in software as in a video game, check the Unity...
No. 22742, Posted by AGlick on 09/10/18, 09:55 PST.
Home  Membership  About Us  Privacy  Disclaimer  Contact  Advertise

Copyright © 2018 eFunda, Inc.