setWeaponCookable( <weapon name>, <cookable> )


Module: Weapons

Summary:

Set new cookable state to a weapon



Example:

setWeaponCookable(weaponName, cookable);



Required Args:

  • 1 : <weapon name>: (string) The weapon name for this weapon.
  • 2 : <cookable> New cookable state to set


Deprecated Args:

  • 1 : <id> Weapon id (available for backwards compatibility). You can get it with getLoadedWeapons()