Hmmm, maybe I am overstepping my bounds a bit, but perhaps the hasweapon command could help you?
Create a Trigger and in it's COndition field put this...
(player hasweapon "m16")
Then in the OnActivation field put this...
player setcaptive false
Of course the player will have to be captive first.
- Player can be replaced with any unitname
- m16 can be replaced with any model name
Weapon models can be found in the COMREF
hereTo check for multiple weapons, you will have to add them to the condition field by using the OR / || command between checks for example...
(player hasweapon "m16") OR (player hasweapon "pipebomb") || (player hasweapon "uzi")
and so when the player picks up any of the listed models, he instantly becomes a wanted man by all enemies present
It's that simple.