hey I've never used unreal before but in other engines you make two separate sprites, one for the gun/arm and one for everything else. The gun sprite you essentially want to rotate to follow your cursor and flip the sprite depending where it is on the x and y axis!