ophisquest
New member
Hello im making 2d game where various units battle each other in a platform. recently I had started working on a AI to attack the enemy if in range. things worked fine if i place the prefabs directly on the scene from start, but get really weird when I instantiate them dynamically. In the attached file i set s simple tree, just one of the NPCs triggers the attack. both have the same external behavior tree, and tags are correctly set for them to look for each other as targets. i rly don't know what to do anymore