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 setting up teams, with one set of npc's as "enemy", and another set of npcs as team "player", it all works fine.
Until...
you set_entity_model to a different model.
At which point, the "player" team will attack you.
Interestingly enough, change_player() works...you can change character (and model), and they will ignore you.
Are there any errors in the in-game debug console or external console window?
There's this error that spams the terminal window, but thats doing that before switching model.
Look at the included project to see it occuring.
Provide the steps necessary to reproduce the issue:
- set two opposing npc teams, one "enemy", the other "player"
- set the behavior of the npcs to attackable and always hostile
- I have the allies seek player
- play and everything should work fine
- until you set_entity_model, at which point they attack you!
- if you restart and change_player, they won't!
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):