Home   Help Search Login Register  

Author Topic: Unit's currently-selected weapon?  (Read 858 times)

0 Members and 2 Guests are viewing this topic.

LoTekK

  • Guest
Unit's currently-selected weapon?
« on: 03 Dec 2005, 13:40:33 »
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.
« Last Edit: 03 Dec 2005, 13:44:37 by LoTekK »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit's currently-selected weapon?
« Reply #1 on: 03 Dec 2005, 14:01:00 »
I think the reason why you might think this is advanced is because it is hard to find out how to do it.  Actually it really belongs in general because if there was a way it would be simple - it's just that there is no way, without firing the weapon.

I now stand ready to be embarassed by someone posting a solution.  
« Last Edit: 03 Dec 2005, 14:03:04 by THobson »

LoTekK

  • Guest
Re:Unit's currently-selected weapon?
« Reply #2 on: 03 Dec 2005, 14:06:23 »
On the money. I think I was hoping there was at the very least some long-winded cockamamie roundabout way of getting a return on the current weapon. :p