Function; setMiscValues - HWRM/KarosGraveyard GitHub Wiki

setMiscValues(<tObjectType>, <fRecoilDistance>, <fSlaveFireDelay>)

Description

Determines barrel recoil and slave firing delay for the associated weapon (this function is found in the *.wepn file.)

Example

setMiscValues(NewWeaponType, 1, 2)

Arguments

  • <vObjectType>: should always be NewWeaponType.
  • <fRecoilDistance>: how far (in meters) the barrel recoils after firing.
  • <fSlaveFireDelay>: delay (in seconds) between the weapon firing and the slave firing. Note: The total time it takes to fire the weapon and all of its slaves must be less than the weapon's firing time (see StartWeaponConfig.) Note: the "SlaveFireDelay" means: for turret with 2 barrels(or missile/torpedo platform with N tubes),they can output NDamage(Nweapon), to make its fire output continuous, there must be a "time interval" between each bullet, and that is "SlaveFireDelayTime" - SutchAwson

Scope

Related Pages

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial