Osakabe
Student Project · First-person horror · C++ Gameplay/AI · Unreal 4.26 · 8 weeks

Osakabe is a first-person horror experience set in a haunted Japanese castle. You'll need to struggle, run and hide to escape from Osakabe's fierce grasp. Explore your surroundings to find out about Osakabe's past and use your limited tools to turn the tides in your favor.
This project was made in 8 weeks in Unreal Engine 4.26. I was responsible for developing the main enemy AI, which stalks the player throughout the game.
Watch the trailer below. The game is available to play on Itch.io.
AI
I set up the AI to always know the general area where the player is. This creates the feeling that the AI is always close or just one step ahead of the player.
I used an EQS (Environmental Query System) to gather information from the level and generate nodes with scores for where the AI should move or teleport to.


Pathing
The game has doors that are too small for the AI to fit through, and they start closed. To solve this, we added nav links to the doors. When the AI reaches a nav link, it plays an animation and opens the door. This is handled through animation events.
The video shows the AI walking towards its target through multiple doors. The blueprint shows how the AI calculates which side of the door to open (left or right).
