I have 2 suggestions:
1. Use c_scan(player.x,player.pan,vector(360,180,200),SCAN_LIGHTS) in players loop to detect static lights.
2. For each dynamic light use:
Code:

if(vec_dist(player.pos,my.pos)<200){stealth_trigger=0;}


only, and insert to players action loop:
Code:

stealth_trigger=clamp(stealth_trigger+0.1,0,1);


so, when far away from light, player will quickly gain stealth.
(sorry, have clicked wrong button once)


I switched to other account since marth 2010. Guess which.