Ok, this is really just a turret, just have a turret axis sideways on another turret axis.
The arm thing is different. You could make extending arms in combonation with logic rotators, but full ball-joint actionfigure like rotation would be more dificult. Sphere turrets half in the hull can...