DeactivateWeapon


Stops the fire message in weapon cogs. Syntax:

active_time=DeactivateWeapon(player, fire_mode);

active_time: This is the time (in seconds) that the weapon's hotkey was depressed.

fire_mode: This is the mode of fire: 0 for primary or 1 for secondary. The mode can be easily obtained from the senderref of the deactivated message.