search fire of line algorithm
I writing an RTS AI and have some problem with searching fire of line.
Unit can shoot to target if it's in shooting range and there is the fire of line without any obstacles.
If unit deciedes to attack target without fire of line, he should search it.
To do that I send unit to target and stop him when fire of line appears but in this way distance to target may be too close. :(
Designer wants unit not getting closer than it's necessary.
I can't exactly say that in some point unit can shoot to target if he is in another point, but i can do it probably. :)
How to find that optimal point to send unit there.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement