Dispenser could help you out! or you want a turrent that automaticly locks a mob/animal and shoots? EDIT by Moderator: merged posts, please use the edit button instead of double posting.