Hi there,
I’ve yet to dive into the AI with any real vigour. I had a basic wandering AI on a prototype I was working on a few months ago, but in my latest project my need is for this one AI to do more advanced behaviours.
For example, I want this AI to effectively be blind so he will do no LoS checks - or rather none that represent sight. The idea is that he uses smell and sound to locate you and I’m wondering at the best way to do this using a combination of blueprints and behaviour trees?
I thought for the ‘smell’ system, this would be a distance/time based system with several ‘alert’ states. In conjunction with this, I want the player to drop behind ‘scents’ (invisible entities with a decay timer on them) which the creature can detect if he gets close enough to them in a certain time frame. From there he would theoretically be able to follow a scent once he picks it up, should the time not have run out for the scent to still be around, at which point he would lower his alert state and go back to whatever he was doing before the scent was picked up.
For the sound events, he should check for audio events created by the player and other dynamic sources to further pinpoint the location of enemies. This would allow his two ‘senses’ to work together to pinpoint potential enemies, and also allow the player to effectively lose the AI pursuer by running through liquids to disguise scent, jump over gaps in geometry to throw the scent off and sneak around or cause physicalised objects to make noise to confuse the AI.
Does any of this sound problematic, and can anyone lay some basic framework for this to get me started please? I’m not an advanced user of UE4 by a long shot in terms of scripting etc but with some guidance I pick things up pretty quickly and usually end up moulding something good from a solid starting point!
Thanks for any help on any of the systems mentioned here. If you have a good idea how to do any of these things (in particular the smell system) then reply on here.
Cheers,
Daz