AI never switches over from primary to secondary when a vehicle/boat/air unit is nearby.
Only when all weapons (primary & sidearm) are removed the AI will select secondary.
Also, AI only shoots at AIR units with the "launch_RPG32_F" where player can also shoot at air with "launch_NLAW_F".