Here are the pics : Imgur: The magic of the Internet
I will try to explain, it’s kinda hard.
So I have a behavior tree which drive my AI_enemy_BP.
The state of the enemy is defined by a VisionCheck task, which change when the AI see me or not (with AI Perception in the AIController). If the AI see me, a variable See is set to true. In VisionCheck, if he lose sight, it is set to false.
But the problem is if one of the enemy in the scene see me and go to Combat mode, then every enemy in the scene will see me and go to Combat mode too…
I don’t understand, it’s like there is only variable See so when the variable is true for one AI instance, it is true for every instance…
Can you help understand this ?