so im making a horror game ( trying lol ) but i have my terrain i have my first person controller and all i already have the AI and the animations and stuff but now i wanna make him blind i guess ? dont know els i should say it lol but i wanna make him blind and for example when i smash the wall or make a load noise that he comes for that sound… like is that even possible ?
You need to use a perception component and give the AI the ability to hear sounds.
In your AI controller add a perception component and configure the senses, in your case one sense is needed which is hearing
In your AI pawn get the perception component and handle the perception update so when the AI hears a sound you can go to that location
To trigger the AI to hear something you can use this event, for example called when you shoot a gun or break something.
Alright thank you for the help! will try this tomorrow hope it works because i’m new to all of this
also is there a video that i could watch and learn about this ?
Hey there @smeagollx! Welcome to the community! Here’s 2 videos going over an implementation of sound detection and handling with blackboard and one without.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
Blackboard:
Just BP:
thank you will watch those videos!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.