I've been working on a project, trying to get objects with the turret behaviour to target other objects based on their team.
Seemingly, no matter what I do, the turrets will aim at the player no matter what team they are on. I've tried setting up a condition that states "If team = 0 target player", but the other teams will also target the player. I've also tried picking an instance of a certain team, and they're also targetting the player.
At the same time, I tried using a container to spawn these turrets, and pin them to the base, but when created, they pin themselves to the first instanced object only... not sure why, so that's why my code has that extra bit at the start.
Ideally, I'd like the turrets to target the closest team that isn't their own, but I can't even get the teams separated at this moment in time.
Here's a quick break down comparison of what I've done: https://copy.com/WToLXjDSmNaNrcsr