How to add a weapon to a vehicle?

I recomend you to add an arrow component on the front of the vehicle, in the vehicle blueprint, and use the node “spawn actor from class” to spawn your projectile blueprint.

This way it will follow the rotation of your vehicle


A worst setup (but maybe needed in some cases) could be to get actor forward vector, and add it some forward distance to spawn the projectile on a imaginary point, generated each frame