I have constantly checked and put the skill to maximum and made it so the enemy only has a 20mm.
Location of target: Dents de midi
Location of enemy: 200m south of Chapoi ~400m above ground
The issue is whenever I press 'Play Scenario', the plane just starts firing countermeasures instead of firing at its designated target. and then quickly either crashes into my CIWS or flies off, turns around and crashes into the side of the mountain.
I have made it so both the plane and CIWS doesn't take any damage but just fight and target each other for the whole time so I can make a cinematic.
Here is the used code for the targeting:
(Context: Target is 't6')
null = this spawn {_this dotarget t6; sleep 0.5; while {alive t6 and alive _this} do {sleep 4; gl action ["useweapon",vehicle _this,_this,0]; }};