Escape By Any Means Devlog pt8


This is the AI spawner.

The spawner runs on start.

The code instantiates a specified amount of AI into the scene at random positions.

The AI wont spawn near previous AI by checking the random position that they will spawn at and checking if the distance is less than x amount.

 If the distance is less than x amount then it will get a new random position through the use of a while loop.

The AI also won't spawn near the player by also checking the distance between the player and random position.

Get Escape By Any Means