Hello everyone.
I am a big fan of ABS systems, and am currently using Falcao's Pearl ABS for my new game. For those who haven't used this ABS system in a while, here is a short recap of how enemies are made:
Now, my character has just escaped a prison cell, and needs to sneak by guards patrolling. With the way pearl ABS works, enemies will normally attack as soon as they come into sensor range, but I want the guards to only attack if they can see the player. Meaning ALL guards on this specific map should enter their combat state if all of the following are true:
- Player is inside of the sensor range of any of the guards
- This guard is facing in the direction of the player
- There is no cover between the player and this guard (any object other than the floor, I am okay with making an event in every location that is considered cover)
So far I have not been able to find a way to do this, does anyone have any suggestions?
Update: Using the move route and switches I have been able to trigger a game-over event when the player comes within 4 tiles of a guard. Now my problem is: how do I create line of sight in this case?