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






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?

Reply | Start a New Topic | List Recent Topics

There are no replies to this message.

Home  Membership  About Us  Privacy  Disclaimer  Contact  Advertise

Copyright © 2018 eFunda, Inc.