The invalid call is "ent_create" in your event "got_shot", no function that can cause another event (such as c_trace, c_move, ...) is allowed to be called inside an event to avoid infinite loops.
Simply place the ent_create call in your enemy_move function after the while loop.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends