extern void object::KillAnt1() { object item; // info. about object goto(-30, 0); // goes west aim(0); // aims straight while ( true ) // always repeats: { item = radar(AlienAnt, 0, 360, 0, 40); if ( item != null ) // ant detected ? { turn(direction(item.position)); fire(0.5); // shoots 0.5 s } wait(1); // waits 1 second } }