DaedalusMachina
Member
Working on an idea for an RPG, and was wondering if I could get a script.
Once a command is given, an event (say a Guard) will search for the player. If the player falls within a Visible Range (6 tiles long by 3 tiles wide in FRONT of the guard's current facing), then the player can be seen, unless the switch "Is Hidden" is ON.
I'm mostly asking for the script which will return boolean if the player can be seen or not, then checks if the player Is Hidden.
If you need more information, I'll do my best.
P.S.: If someone could possibly tell me how I can turn a terrain tag into a doable script (for instance, using a shadow terrain in order to trigger the "Is Hidden" switch) that would be great, too.
Once a command is given, an event (say a Guard) will search for the player. If the player falls within a Visible Range (6 tiles long by 3 tiles wide in FRONT of the guard's current facing), then the player can be seen, unless the switch "Is Hidden" is ON.
I'm mostly asking for the script which will return boolean if the player can be seen or not, then checks if the player Is Hidden.
If you need more information, I'll do my best.
P.S.: If someone could possibly tell me how I can turn a terrain tag into a doable script (for instance, using a shadow terrain in order to trigger the "Is Hidden" switch) that would be great, too.