Hello, I have been working on a horror game for my college project and I only have m AI left. I have created an Ai that can patrol the environment (a house) and can catch the player. However, I want the AI to spawn at random times near the player (for example behind the player) instead of having the AI patrolling the house all the time.
I have watched tutorials on spawning enemy AI but they are about spawning multiple enemies at random locations. I don’t know how to make only one AI spawn near the player at random times. If you could help give me an idea of what to look into, I would really appreciate it.
Thank you