I have some code below for a simple ally Ai. However I am not sure how to have the ally drone skip the top code if there are no enemies nearby. If I use if(!instance_exists(obj_Player)) exit; then the ally will just float off brain dead. Very new to coding and not sure what to do here...
The player has an ability to summon a drone and help him, what the drone does is shoot to enemies and follow the player.
Everything works perfect but it has something that i don't like...
If the drone see's an enemy it stars shooting, when killed it stop, but it even shoot to enemies that are...