Or moreover, the question is in itself utterly baffling.
There is literally no reason you’d use Unreal Engine 4 for this outside of the renderer, same deal with Blender. You’d need to write totally custom software to achieve what you want to do, not try and hammer it into normal gameplay code.