I've been trying to put stealth into an RPG Maker VX Ace game using this script by Jet10985, but I'm having trouble with it. For some odd reason, events won't detect anything directly in their line of sight. If I'm standing off to the side, it's fine, but if I'm dead-on right in it's face, nothing.
I know very little about scripting, so I don't have the faintest idea as to why this is happening.
This is the script:
[embedded media]
I set up a test area with as few variables as possible to show what I'm talking about.
Event that is viewing

screenshots


EDIT:
Further testing has revealed that having a wall behind you, even when in vision, SOMETIMES hides you.
More strange stealth














