Shoot at where Player will be when projectile hits

I haven’t done this yet, but my idea is for the AI to get the velocity (speed and direction) of where the player is going, then fire ahead of the player on the XY axis.
You can also do Z if you want to shoot the player out of the air.