There is already a way to do this by using macros. I didn't make it but someone showed me. The only issue is the pet is right on top of the target not off to the side. So the system is thete but could be tweaked.