Hi there,
I am trying to create a modular system for weapons and hulls (vehicles) for targeting. I tried filtering family_hull with an instance variable condition. But it still targets both enemy and allied units. Can I filter turret behavior to add a target, or do I have to use separate families always?
Thank you.
Develop games in your browser. Powerful, performant & highly capable.
One family is enough.
For each turret, pick the nearest hull of the other team and pass it to "Acquire target":
"Add object to target" works on the whole family, so the team filter goes in these conditions.
Full:
Thank you, XHXIAIEIN
I used your approach; it works. But it messes with the rest of the code. I will stick with two targeting families to keep things simple.
Have a good day.