Add Turret behavior for the bullets and set the target as whatever the bullet should chase. If you don't know how to use the Turret behavior, there's a tutorial for it in the C2 documentary.
You could also do it by storing the target's UID into a variable within the bullet and then change the bullet's direction every tic, but that's a bit complex to make. I'd recommend going with the turret method.