action target_act() { set(my,ZNEAR); while(1) { vec_set(temp,vector(screen_size.x / 2,screen_size.y / 2,2000)); vec_for_screen(temp,camera); if (c_trace(camera.x,temp,IGNORE_ME | IGNORE_YOU | IGNORE_PASSABLE)) { vec_set(my.x,target.x); vec_to_angle(my.pan,normal); wait(1); } } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de