Hello All! I'm making a game with some shooting AI enemies; they work great with only the player; when I introduce teammate AI into the mix, they seize up. I've made a short video to demonstrate this issue: youtu.be/tGeaOkxPsyc
And here is my code: All I've changed is anywhere you see the "Playerteam" family was once just the player.
I am trying to make the enemies target and shoot at the nearest team member on the player's team, same as before, but before; it was only the player in the equation. In other words, I am trying to make the enemies shoot just like in the video, but instead of only targeting the player, they target the closest target within their line of sight.
Here is my project file: dropbox.com/scl/fi/z24kdwlhuxcii048ldyhk/Platformer.c3p
Here is the file in Google Drive incase dropbox doesn't work: drive.google.com/file/d/1uEIrxOETHxFksYwQ2wdzgpptqIC-oXq9/view
All help is greatly appreciated!