I need to attach a linetrace to the muzzle socket component of a gun skeletal mesh. Is it possible?

Could you provide a link to the example if possible?