ok here goes. im making a race that has a halo on top of his head. the race heals everyone around him for 1 every .1 seconds. so the halo will stay pretty consistent on top of his head. and I wanted to make it so that if someone gets around me (and they start getting healed) then they get a halo on there head also which I have no problem with that, at least yet. so the problem is; I cant really make it so that there is a line connecting them from the middle of each halo. but I wanted a equation that figures out if the person getting healed is in front of me, behind me, to the left of me, or to the right, and then accordingly subtracts or adds (es_xmath) to were each line starts on my halo, and ends on their halo so that it will be from the closest point possible on each halo.( I know this seems like a lot but I have nothing better to do and I want this race to be amazing. = P) I want the halos to be connected like...
_ _
/ \_____/ \
\_ / \_ /
not like
_ _
/ _\_____/_ \
\_ / \_ /
theres a visual effect (kinda) because im not good at explaining apprently
here, I uploaded a image of it as my avatar just for you to see. the top half is correct, the bottom half is wrong. The person healing everyone else (me) is the on in the middle with writing on it.