I'm not 100% certain this belongs in Advanced, but it seems like it would. Anyways, I've been looking for a way to find out a unit's currently-selected weapon. Without firing a shot, so event handlers are out. I've pored over the comref, and couldn't find anything that would directly return the info I need, and I couldn't seem to find anything that might return something that I could nurse in order to find out what I need.
I've been trying to think up of some way to nurse whatever kind of returns I can get from the various commands, but I'm coming up empty.
So. Does anybody have a reliable way to find out this information? It actually doesn't even need to be the exact weapon. The important thing I need is primary, secondary, or pistol.