Im making a game where the character have a teammate, but for some reason the enemies don't shoot the one who is the closest, it only focus in the first objective he sees, any help?
Hard to say without seeing the events. You probably need to evaluate who is closer using the distance expression. construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
The smaller value is closer and then set that as objective. I´d advice against doing this every tick, doing this every 0.3 seconds or so is probably enough.
here, i tried using the one to compare distance but i didn't know what else to do, all the allies are tagged in the family of good bois
Develop games in your browser. Powerful, performant & highly capable.
I think the comparison doesn´t work the way you did it. But either way I just remembered there is actually a "Pick nearest/furthest" action so no need to use distance :V That should do the trick without any hassle! Could have thought of that earlier. You can just do "Pick nearest goodboy" and use enemy.X enemy.Y as position.
construct.net/en/make-games/manuals/construct-3/plugin-reference/common-features/common-conditions