I have seen several games where a machine gunner must mount in order to attack. When he mounts, movement is disabled, and when he unmounts, he is able to move again. I have no idea of how to go about doing this. Oh, and in my game, the machine gunner can still attack when he's not mounted, so I don't need to worry about disabling attacks and all.