The ai will not fire 3 rounds.
The mortar gunner doesn't fire 3 rounds with the commands, he fires only 1 round:
- mortargunner doArtilleryFire [getMarkerPos "marker1","8Rnd_82mm_Mo_shells",3];
- mortargunner commandArtilleryFire [getMarkerPos "marker1","8Rnd_82mm_Mo_shells",3];
The gunner of the m4 scorcher fires 3 rounds with the commands:
- gunner155 doArtilleryFire [getMarkerPos "marker2","32Rnd_155mm_Mo_shells",3];
- gunner155 commandArtilleryFire [getMarkerPos "marker2","32Rnd_155mm_Mo_shells",3];
That happens since version 1.66.
I did the tests with vanilla arma 3 (no mods) version 1.66 139494