TPS/FPS weapon mesh

Hi,

I am developing multiplayer game with both TPS nad FPS mode. I have set up Character and Arms mesh to properly behave (shadow casting, visibility etc.). Now in weapon to properly cast shadows (only Character model) I should also have 2 meshes - one to attach to Character and one attached to arms - is it right?

If so is there a way to duplicate a mesh using code (not to be set up via blueprint)?

Look at ShooterGame example, it uses same meshes for 1st and 3rd person. So you don’t need 2 meshes.

I have looked at Shooter Game -> but there the character doesn not cast any shadows. I had similar sollution - but the shadows were incorrect.

I created seperate meshes right now and it works well - self shadows are visible now. I was just wondering if there was better sollution.