cyborgsattack.com/files/notfiring.PNG
So the basic concept is this:
Cannons (actually the whole family but i have tried family to family, now trying cannon to family)
This code, detect line of sight, as it is true, then the cannon uses the turret to rotate nicely to the cyborg, and looking at debug shows "has target" is true for the turret portion, but it never fires.
Now, if i remove it from the LOS and put it alone, that then turns towards the cyborg first in group or nearest, and fires. The only difference is i want LOS because of obstacles in the way, without LOS it fires regardless of solid obstacles because Turret behavior has no LOS, only distance and angle.
So what works in this setup, the turret or turret family depending on how i setup that thing, works for LOS, then when LOS is true then cannon in turret family rotates towards the target like it should, but never ever fires while in that LOS grouping.
Only when i remove it from the LOS grouping does the cannon in with the turret behavior, work.
What i have proven so far is that family units can target other family units and fire weapons, this removes a lot of problems in general for me, as in a lot of events down to just family vs family. But what i fail at is simply putting LOS as part of the behavior tree. I need turret so that i can control the rotate speed and then fire based on if it can fire.
Any suggestions? i doubt this is a bug but probably something simple and stupid i am not doing.