Thanks a ton man, this works. EXCEPT, the else statement never comes into effect, because when it hits level geometry it says empty pointer, I'm assuming because skill50 dosent apply to blocks but only entities.
(PS: Why was this moved to Lite-C? This is in C-script.)