AutoSelectWeapon


Runs the autoselect message in the weapon cogs and returns the bin number of the cog that returned the highest number. Syntax:

weap_bin=AutoSelectWeapon(player, select_mode);

select_mode: If the select_mode is valid, it becomes the senderref of the autoselect message. The weapon cogs use the variable to find out what type of cog is looking for a selectable weapon.