Best approach for search and destroy?

Hi. Hope everyone is doing well. I am trying to create an arena in which there is one player and enemies will spawn in random locations, both player and enemy having the ability to shoot at each other.
I have a couple of questions if you please take a look:

1- what is the best approach for the player to find the enemy? Raycast or just observing the enemy transform position once the enemy spawns?

2- is it possible to handle (train the player for) more than one enemy at once?

3- how would you suggest I train the player to dodge the enemy bullets?

use the ray perception check script for easy ray casting
or
use a function to get the nearest enemy and the direction to it

dodging bullets depends how you set up the movement, you can get the nearest bullet and the direction to it and just giving a negative reward if hit should be enough… assuming the agent can move fast enough to dodge a bullet

1 Like

thank you very much. I’ll give it a shot