I’ve got ships that have a weapon that’s designed to attack fighters and missiles (the ships have other primary weapons for capital ships). The ships will attack fighters using the anti-missile/fighter cannon while shooting another ship, but when it comes to incoming missiles, the ship won’t try and engage them at all. I’ve added the different missile attack families to the attack priority list in the CanAttack ability. I’ve also added setMissileKiller to the anti-missile wepn file too.
If I tell the ship to force attack missiles the weapon fires perfectly and does exactly what I want, but if I leave the ship to it’s own devices it ignores missiles completely. I know the Defence Fighter uses a script for it’s anti-missile weapons, but I’d rather not add that script (or a variant of it) to all the ships that use anti-missile guns. Any advice?