setWeaponMeleeTime( <weapon name>, <melee time> )

Module: Weapons


Set new melee time to a weapon


meleeTime = 100;
setWeaponMeleeTime(weaponName, meleeTime);

Required Args:

  • 1 : <weapon name>: (string) The weapon name for this weapon.
  • 2 : <melee time> New melee time to set in ms

Deprecated Args:

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