Types/AttackParameters

From Official Factorio Wiki
Revision as of 12:24, 4 October 2015 by Adil (talk | contribs) (First iteration of creating page. Errors and incompleteness imminent.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basics

Definition of combat actions performed by combat robots, units, turrets and weapons.


Mandatory properties

type

Type: Types/string

Specification of the type. Values are:

   "projectile"
   "beam"

cooldown

Type: Types/int

Interval between consecutive attacks.

range

Type: Types/double

Distance of attack. Overrides one defined in ammo.

Optional properties

ammo_category

Type: Prototype/AmmoCategory

Mandatory for guns. Defines whether the attack will be affected by upgrades.

projectile_center

Type: Types/Position


projectile_creation_distance

Type: Types/double

Distance from the attacking entity, at which effects of ammo are applied (source_effects).

sound

Type: Lua/table

Sound the entity emits when it attacks. Table fields:

Filename Types/FileName
volume Types/double