My units shoot their targets once in range whether there is a solid object blocking LOS (line of sight) or not. Is the turret behavior not integrated with the solid behavior.
What I want is a unit that has LOS to shoot/look at the target (which I already achieved) and stop shooting/looking at the target when LOS is broken (need to implement).
Ive already tried implementing it by setting the turret behavior disabled at start and enabled only when LOS is achieved with target. The LOS behavior is set to "obstructions: solids" and Ive already double checked all of the sprites that I want to block the characters' visions are set to solid behavior. Ive also tried looking this up on the forums because I thought it might be a common issue for a lot of people doing a top down game but I cant find anything relevant.
Thanks for any help.