I'm trying to make it so that the player must use a specific primary weapon to destroy some cargo containers. Is it possible to somehow check which weapon was used for the kill? If it means anything, the weapon will always be in bank 1.
The idea is that the cargo contains bombs which will detonate if normal weapons are used. My first idea was to disable them first using distruptors, but it seems you can't disable cargo containers. I don't want to lock the primaries to that specific weapon if I can avoid it, since there are enemies in the area.
Also, I want to have the player able to order his wingmen around (including attack my target), but unable to order them to attack the cargo. I tried adding a ai-ignore goal with priority 90 (should override player orders correct?) but it doesn't work.