Hi Tom
You posted this script a few months ago and i will shortly tell you that this lua script is working fine for me!
Without your script i had "Ghost TCAS Targets" when flying online on IVAO. And im sure because on the webeye there were no planes arround me. I tested this script on a flight from EDDP to LEPA (about 2hrs) and NO GHOST TARGETS. When i had a TCAS Target it was an ivao Plane arround me and i checked with WEBEYE and PFPX Traffic. 100% Right.
So thank you for the script!!