The most basic implementation would look like so:
Providing there is a camera attached to the springarm, this will place it between player’s cursor and the character. This is running on Tick in the character. Obviously this will benefit from a form of interpolation to smooth things out, basic camera lag might do; and a separate trace channel to ensure trace is hitting what it’s supposed to only - depends on how vertically designed your game is.