¿Cómo cambiar automáticamente el color de las balas cuando se acerca a un actor?

Tenía una duda, y es que quiero que mi personaje al acercarse a un actor, sus balas (bolas) disparen de otro color. Generalmente ya son amarillas, pero quiero que cuando pasen a dicho actor se vuelvan rojas. No sé como hacerlo y realmente necesito ayuda para ello.

I have a doubt, and I want my
character to play an actor, his balls
(balls) appear from another color.
Generally, it’s its amarillas, but
it’s hard when it comes to dicho actor
se vuelvan rojas. It’s not like that
and it really needs help for them.

Ooof, I tried but I don’t get it. All I got is that the player’s balls are the wrong colour. o_O