If you are trying Kikahu's code then also it will need a replacement for "you" (skill1 converted to entity pointer) within the while loop in these lines :-

vec_for_vertex (target_ver,you,240);
vec_for_vertex (my.x,you,239);