if you want c_scan to target only certain entities you could give these entities a special skill value like my.skill30=1234;
check for that in event function

if you dont know what i mean , i had made a small demo for someoneelse already and i'll give you that