How do I make proper AI movements like horror games AI movements?

Hello! I’m New to blueprints and all this UE5 stuff and I’m trying to code a horror game kind of like “Lunch lady” or “Devour” but completely different etc. I’m having trouble with the AI movement and I really don’t know how to make my AI have almost the same movements as theirs… I don’t know if anyone can help me but I really do need help as this is my first game and I really just a, struggling with the AI animation/senses/movement. Once I do that I’ll be done. Thank you in advance!

Hey @OfficialXylos! Welcome to the forums!

Let’s start MUCH smaller than “all of the AI animation/senses/movement”! :slight_smile: Try to figure out a specific block you’re having, an issue we can help with that’s much more defined. Show us some screenshots of what you’ve got so far!

What you’re asking for is currently too large and wide of a question, and we can’t really help unless we know what you’re working with.

Get back to us!


Here’s what I have so far, I’m watching tutorials and I can get it where the character moves and when in his “FOV” he goes after me but I really don’t want any of that to happen right away, I guess I’m wanting the AI character to be walking slow around the map and you have to avoid him but when he see’s you in your line of sight he runs a bit faster etc. idk its my first game and I’m prob just over thinking it…

My other issue is the way he wonders, it doesn’t seem like he’s “searching” and I cant get it to where he can open doors and go through the door…

That’s great!

You’re on the right path following along with tutorials.

I would suggest having a “Dummy project” where you learn things and you can bring that over to your main project over time.

ALSO- MAKE BACK-UPS!!! I cannot stress that enough. Even if it’s just copying the project to another folder somewhere. The chance of something going wrong is always there and your project can go completely corrupt so ALWAYS have your backups!

As far as making more nuanced behavior, that will come with time!
For movement, it’s going to be on the actor, you can adjust their settings with the “Character Movement Component”. You can Get Character Movement Component and off of that Set various things like “Max Speed” and “Acceleration”.

For doors, look into “Smart Objects”.

For random movement, a lot of AI tutorials will cover that, just keep looking around, it’s usually added as an additional thing but not usually focused.

Hope this helps, good luck! You’re on the right track, just keep going and you’ll get there!

Thank you lol, for my first time coding in general btw, I’m glad I’m on the right path. I’m making a new project and starting from scratch and using it as my “dummy project” and going to work on the AI first, every time I would try doing the AI on my main project it would lag and everything was just a mess, I’ll be honest I’m not looking to make the game perfect no first game ever is, but I’m enjoying the learning process and I should’ve started years ago but had the wrong mindset at the time for why I wanted to make a game, now I want to make a game because its something to learn and its fun :slight_smile:

1 Like