How to make an object roll when controlled as a third person character?

Copy the third person character. Set the skeletal mesh to nothing, and put a cylinder in like this

Then all you need is this code

barrel