Yes I have already written that script for someone else but basically you need to use something like my PlayerLooking function (found in my example scripts thread, links are in the first post) although it technically checks the reverse to what you want it will be fine if you remove the distance check from the function and check that separely.
Or if you can wait I will upload the file when I get back home in a few days.
life\'s one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11