How to let your AI See!

Stealth Game & Cinematography

Objective: Make Guard detect player when in-front

The simplest way to do this creating a collider so lets create a new gameobject and store it inside of guards and add a box collider component. Then extend it to create a range of vision.

Then create a script, lets call it eyes as it will act as such. Drag this script to the gameobject you just added the box collider into.

Inside the script, create a trigger which when player enters starts a cutscene created displaying player captured animation.

Also don’t forget to set your trigger to active in collider and add a rigidbody and disable the gravity.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store