Spawning one enemy near the player at random times

Catleopatra
Sat, 22 May 2021 12:17:20 +0000
Community & Industry Discussion

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

7 posts - 1 participant