thanks superku for your help.
if(you) { you.skill1=50; } will never detect the entity in it's scan range all it does is stop showing empty pointer error. And i am using a6 for some reasons and i don't think c_scan is supported and i don't want to upgrade for now.
Is there a way i can detect entities around by scan_entity?
If you have time please download my level and check it your self please.
Thank you