Function; addShield - HWRM/KarosGraveyard GitHub Wiki

addShield(<rShipTable>,<sShieldType>,<iMaxShield>,<iShieldRechargeTime>)

Description

Adds a shield of <sShieldType> to a ship.

Example

addShield(NewShipType,"EMP",220,20)

Arguments

  • <rShipTable>: Reference to the ship; this should be NewShipType.
  • <sShieldType>: The type of shield; "EMP" or "Bullet". Bullet applies to anything that uses DamageHealth. (Meaning missiles and Lasers are also affected if set to "Bullet")
  • <iMaxShield>: Max value of the shield for this ship; the value is in the same units as health and damage.
  • <iShieldRechargeTime>: Time in seconds for the shield to go from 0 to max value.

Scope

Related Pages

Comments

Page Status

Updated Formatting? Yes
Updated for HWRM? Yes