Line of Sight Detection Issues
CloDevious
Member Posts: 5
Ok, so I think I have a real issue and I am not sure how to fix this one. I have a table that detects where an enemy unit is, using a cross pattern of invisible actors simulating ray checking. Works great when it only has to fire in one direction at one enemy unit. However the issue is if their are more than one enemy units. For example if there is one to the left and then another to the right it just will not fire. I assume it's because it has no idea what to change the table to since it's picking up on two objects.
So my question is what would be the easiest way for it to decide to choose one target shoot it till it dies. Then start shooting at the other target?
So my question is what would be the easiest way for it to decide to choose one target shoot it till it dies. Then start shooting at the other target?
Comments
How the game is being designed, the cannons will only shoot at each other if they are within those collision detection's. The problem is when you place a cannon, down and their are already two enemies cannons, one above and lets say one to the right. It just stops. If GS would let me check an attribute from a table I am sure it would work. However it does not seem to let you do that in a condition.
http://i917.photobucket.com/albums/ad16/Chloe_Audrey_Lee/GameSalad/Bugs/GS_Issue_01_zps25e24fcb.jpg
http://i917.photobucket.com/albums/ad16/Chloe_Audrey_Lee/GameSalad/Bugs/GS_Issue_02_zps6fe2deb2.jpg