How do I lock fired projectile direction to an enemy?

I see it…how exactly would I use that to achieve what I’m going for??