Just to add that if you use setpos or camcreate to move machineguns (and perhaps other vehicles) the AI cannot mount them either
Hopefully the campaign decryptor will yield some results.
I guess it's one of things BIS forgot to include in the coding of the game
Having said that however they did it on that Red hammer mission so it must be possible!!