yes, I did, but I don't have a link anymore, because my host deleted his site by accident :-\
I've used it as a part for a searchlight (in a tower) script.
The guy that use the searchlight sounds the alarm when he spots the enemy or any possible friendly body. He only do that when his lightbeam is pointed to one of those.
One of other soldiers run to body, chrouch to see whats wrong and start to search.
It's one of my unfinished missions...
It was made by LCD and it was called isbodyhidden.sqs
I dont think it works in MP, it's not easy to use and it has plenty of functions.
It checks the distance between guard and body and it even checks there no building around that could block the guard's view!
The original is in the editordepot