Types/AmmoType

From Official Factorio Wiki
Revision as of 11:34, 28 June 2019 by Cyberslas (talk | contribs) (Added missing source_type property)
Jump to navigation Jump to search

Basics

Definition of actual parameters used in attack.

Mandatory properties

category

Type: Types/string

Name of a Prototype/AmmoCategory. Defines whether the attack will be affected by upgrades.

Optional properties

action

Type: Types/Trigger

Describes actions taken upon attack happening.

clamp_position

Type: Types/bool

Default: false

energy_consumption

Type: Types/Energy

range_modifier

Type: Types/double

Default: 1

cooldown_modifier

Type: Types/double

Default: 1

consumption_modifier

Type: Types/float

Default: 1

target_type

Type: Types/string

Default: "entity"

Either "entity", "position" or "direction". If this is "entity", clamp_position is forced to be false.

source_type

Type: Types/string

Default: "default"

Either "default", "player", "turret", or "vehicle". Applies properties to ammo when used by set value.