getWeaponHitLocMultiplier( <weapon name>, <hitloc> )

Module: Weapons


Returns weapon's multiplier for the specified hit location


hitloc = "torso_upper"
dmg = getWeaponHitLocMultiplier(weaponName, hitloc);

Required Args:

  • 1 : <weapon name>: (string) The weapon name for this weapon.
  • 2 : <hitloc>: (string) The hit location e.g. head, helmet or neck.

Deprecated Args:

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