Coding examples of how to allow to fire a projectile in the direction the player is facing using the raycasting 3D extension

Can someone give me a coding example of how to have projectiles fire from where the player is facing?

(My project is Tower Game)