Function; setAccuracy - HWRM/KarosGraveyard GitHub Wiki

setAccuracy(<vObjectType>, <fDefault>, {<vFamilyName1> = <fValue1>}, {<vFamilyName2> = <fValue2>}, ... , {<vFamilyNameN> = <fValueN>})

Description

Sets a default accuracy for the weapon with override values on a per-family basis. If a weapon is set to 0 accuracy against a family it will not target that family.

Example

setAccuracy(NewWeaponType,1, {Swarmer=0.01}, {SpaceMine=0.01}, {Torpedo=0}, {HeavyMissile=0}, {SmallMissile=0}, {Fighter=0.10}, {Fighter_hw1=0.10}, {Corvette=0.20}, {Corvette_hw1=0.225}, {munition=0.01}, {Frigate=0.60}, {SmallCapitalShip=0.88}, {BigCapitalShip=0.88}, {ResourceLarge=0.9});

Arguments

  • <vObjectType>: should always be NewWeaponType.
  • <fDefault>: default accuracy setting for all Families
  • <vFamilyName1> to <vFamilyNameN>: the name of a family.
  • <fValue1> to <fValueN>: the accuracy multiplier versus the named family. Must be between 0 and 1.

Scope

Related Pages

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

⚠️ **GitHub.com Fallback** ⚠️