Creating gun recoil through programming

This could be interesting for you:
https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/9465-how-to-create-a-recoil-blueprint