GetWeaponPriority


Runs the autoselect message of a weapon cog and returns the value that the message returned with ReturnEx(). Syntax:

priority=GetWeaponPriority(player, weap_bin, select_mode);

select_mode: If valid, this integer becomes the senderref of the autoselect message.