A downloadable game

School assignment: AI Programming
Built with Unreal Engine 5.7 Blueprints

A third-person stealth game with two autonomous guards. Avoid their sight cones, stay quiet — but once one of them spots you, all of them know where you were last.


How to Play

Move through the level without being detected. Use walls to break line of sight. Stay silent to avoid triggering the guards' hearing.

WASDMove
MouseCamera
FMake noise — triggers AISense_Hearing

AI Systems

Each guard runs a Behaviour Tree with three states driven by a Blackboard and a Selector with priority-ordered branches:

  • Patrol — follows a spline route, reversing direction at endpoints.
  • Chase — triggered by AISense_Sight. Pursues the player directly. A background service ticks every 0.25s to detect when sight is lost.
  • Investigate — triggered by losing sight or by AISense_Hearing. Guard moves to the last known location, waits, then returns to Patrol.

Perception

  • AISense_Sight — 120° cone at 1500 units. Provides an actor reference. Triggers direct pursuit.
  • AISense_Hearing — provides a location, not an actor. Guard investigates where the sound came from, not where the player is.

The two senses produce visibly different responses — sight means the guard knows exactly where you are; hearing means the guard only knows where to look.


Team Alertness

When one guard detects the player, a shared Game Instance flag is written. All other guards in Patrol read this flag within 0.25 seconds and transition to Investigate, moving toward the last known player position. The flag clears after the alert fires once.


Built with Unreal Engine 5.7 · Blueprints only · No C++

Published 5 days ago
StatusReleased
AuthorValenVier

Download

Download
Windows.zip 826 MB

Leave a comment

Log in with itch.io to leave a comment.