Does the issue occur in the editor or during gameplay?
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:
Real-time, Grid-based, 3rd person, but I believe it's N/A.
Briefly describe the issue you're experiencing:
NPC's do not attack if their behavior changed by script. They're attackable, they follow the player, but they don't attack.
Are there any errors in the in-game debug console or external console window?
No
Provide the steps necessary to reproduce the issue:
- Create two behaviors: peaceful (never hostile) and aggressive (always hostile);
- Make a script to change NPC's behavior (e.g. provoke a fight in a dialog);
- Give NPC a peaceful behavior;
- Start the game and initiate the script. NPC will follow you but he won't attack you.
NB: If you give an NPC aggressive behavior initially, he will attack you as expected.
Game example is attached: