Deployable mg42

Hello,

Im working on a mg42 and I was trying to make it deployable… Like if you press a button and it sets on a wall or sandbags for less recoil and better aim and focus. But I just cant make it work… Does anyone have a idea of how to do this?

Thanks for the attention.

Redalert.