Ok I tried that:

c_scan(camera.x,camera.pan,vector(360,50,180),IGNORE_PASSABLE|SCAN_ENTS);
while (you) // repeat until there are no more entities
{
if (you.skill15==1) {you.skill14=1; } //if the searched entity is in the scan cone set its skill
you = ent_next(you); // get next entity
}


But nothing happens. I want after c_scan if there is entitiy WITH skill15=1 in the scan cone sets its skill14 (and that must happens instantly)
HELP PLS !