Does the issue occur in the editor or during gameplay?
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
Briefly describe the issue you're experiencing:
When using the Teams setting to make NPC's fight each other on a realtime map, if equipped with a ranged weapon, the "friendly" npcs wil ignore the "player" setting and everyone (friendlies/enemies alike) all shoot at the player.
When opposing team members end up standing on adjacent tiles (front/left/right/back) they will then start meleeing each other as intended.
Are there any errors in the in-game debug console or external console window?
Provide the steps necessary to reproduce the issue:
I have included a project to see this in action.(See below).
Just to explain the project setup.
. Top row of npcs are a group of enemies, with startup for looping them to team "enemy".
. Bottom row of npcs are a group of friendlies, with startup for looping them to team "player".
. The NPC model is Default Equipped with a ranged weapon.
. I have made a damage_logic where $damage is returned as 0 (so all the projectiles dont kill you)
To test:
Play the project and observe everyone shooting you!
Then try and manoeuvre one from each row to two connected tiles and observe the friendly NPC focus on the enemy instead.
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):