How to let your AI See!

Niraj Karki
Jun 29, 2021

--

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.

--

--

No responses yet