Well, my problem is getting a Shilka to fire upon a helicopter. I can understand why this might be a bit of a troubled situation, with all the complications doFire has with aerial targets.
But switching to ZsuCannon should be instant, but the blasted Shilka won't take down two helicopters. I'll post the segment of the script this occurs in, but my scripting ability is very basic, so don't feel the urge to poke a stick with the other stuff
:
_cam camsettarget heli1
_cam camsetrelpos [4,20,35]
_cam camcommit 0
~2
heli1 selectWeapon Zunilauncher38
~1
heli1 doTarget shilka2
heli1 doFire shilka2
~1
heli1 doTarget shilka2
heli1 doFire shilka2
~1
heli1 doTarget shilka2
heli1 doFire shilka2
~1
_cam camsettarget shilka2
_cam camsetrelpos [-13,10,8]
_cam camcommit 6
~8
shilka2 selectWeapon ZsuCannon
shilka2 doTarget heli1
shilka2 doFire heli1
~2
_cam camsettarget heli1
_cam camsetrelpos [5,0,20]
_cam camcommit 0
~2
~1
shilka2 doTarget heli2
shilka2 doFire heli2
_cam camsettarget heli2
_cam camsetrelpos [0,40,20]
_cam camcommit 5
~4
And just to let you know, the helicopter doesn't fire FFARs either. Not once.