WeaponScript.DamageType

From Empires Wiki
Jump to navigation Jump to search
Empires Scripting Documentation
Scripting Overview | Vehicle Script Overview | Vehicle Handling Script Overview | Weapon Script Overview | Armor Script Overview | Building Script Overview | Infantry Script Overview | Hint Messages | Loading Screen Script Overview | Tutorials



Vehicle Weapon Script Characteristics List
General Characteristics | Sound Characteristics | Weapon Characteristics



Weapon Characteristics
Damage Type | Ammo Type | Damage | MinimalDamage | Falloff | Falloffbase | Speed | Gravity | Heat | Heat To Target | Weight | Cycle Time | Clip Size | Total Ammo Clips | Reload Time | Projectile Spread | Inertia | Explosion Radius | Explosion Force
Variables for missiles: Dumb Missile | Homing Missile | Guided Missile | Missile Range | Lock On Time | Lock Range Modifier | Lock On Radius | Countermeasure Effectiveness | Turning Ability
Variables for bio: Player Bio Damage | Player Bio Time | Player Bio Interval | Vehicle Bio Damage | Vehicle Bio Time | Vehicle Bio Interval
Variables for particles: ExplosionSprite | ExplosionSpeed | Tracer Type



Damage Type

The type of damage this weapon causes. Can be defined dynamically up to 128 unique damage types. Resists can then be set with "(name)Resist" keyvalues. For example:

  • New Damage Type = PlasmaFire
  • Damage Type Resist for infantry, armors and buildings = PlasmaFireResist


Note
Several damage types have already been defined. See Resists Script Overview for more information.