Spawn Enemy AI when picking up a paper.

Hello guys, Me and my friends are making a horrorgame as a school project. got 2 script down already.

  1. I can make my enemy Ai move trough doors while following the player using a nav mesh and navagent + script.

  2. we also got a script to pick up notes.

now id like to have a simple c# script that makes the enemy spawn Once and use the navagent to follow my player so if its near player it can use its audioscare and stuff. But only when that one note is read as some kind of trigger.

Pls help me :)! much appreciated and sorry for the bad English.

Are you asking for a script or a specific question?

a script that makes my enemyAi spawn ONCE when a note is picked up.

Go to

In the search box type ‘Spawn once’ without the quotes.

Hit Enter.

Read the resulting threads.

… and have a glance at the Related Questions list for each thread.