i understand. did debate line of sight. but is the ai moves into the battlefield then find someone in there line of sight which will most likely be a minimum of 3 depending on how big the line of sight is how will it know which one to go for e.g. nearest. or is it a behavior? also lets say i have 2 minions fighting at the top of screen and one is left remaining at top and one at the bottom how will i make line of sight recognizable that there is a troop to fight down there. hope this makes sense.
p.s im thinking of making a battle system bit like royal heroes if you ever played it. if not its free on kongregate as well as purchasable on steam
update: im trying to use line of sight and set up when it detects a object but it doesnt give me an option or none i can see to go to the object it just detected. unless they is a way to return the uid of the object its just seen but i have no idea. so i general i dont know how to go to the object i just seen without it going to another object with the same sprite. also im using line on sight to detect families because there are so many objects to detect and the closest type of enemy might change so it would cause an event collision