I’m building and RPG and working on the Monster AI. I got my head around the A* algorithm for path finding and it’s working fine. Now I’m trying to deal with ranged weapons and line-of-sight.
For example a player may want to take aim at a monster. How can I decide if he can see that monster? Maybe there’s a wall or other obstacle in the way. I could check simple directionality to see that a path is successful and straight but I think I should allow aiming around some things (like maybe another player).
Any thoughts on this topic?
TIA