Factorio Prototype DocsVersion 2.0.26

ProjectileTriggerDelivery :: struct

Inherits from TriggerDeliveryItem

Properties

type :: "projectile"
projectile :: EntityID
starting_speed :: float

Starting speed in tiles per tick.

Starting speed in tiles per tick.

starting_speed_deviation optional :: float
direction_deviation optional :: float

Maximum deviation of the projectile from source orientation, in +/- (x radians / 2). [...]

Maximum deviation of the projectile from source orientation, in +/- (x radians / 2). [...]

range_deviation optional :: float

The maximum deviation of the projectile maximum range from max_range is max_range × range_deviation ÷ 2. [...]

The maximum deviation of the projectile maximum range from max_range is max_range × range_deviation ÷ 2. [...]

max_range optional :: double
min_range optional :: double

Inherited from TriggerDeliveryItem
source_effects optional :: TriggerEffect

Provides the source of the TriggerDelivery as as both the source and target of the effect.

Provides the source of the TriggerDelivery as as both the source and target of the effect.

target_effects optional :: TriggerEffect

Properties

type :: "projectile"

projectile :: EntityID

starting_speed :: float

Starting speed in tiles per tick.

starting_speed_deviation :: float optional

Default: 0

direction_deviation :: float optional

Default: 0

Maximum deviation of the projectile from source orientation, in +/- (x radians / 2). Example: 3.14 radians -> +/- (180° / 2), meaning up to 90° deviation in either direction of rotation.

range_deviation :: float optional

Default: 0

The maximum deviation of the projectile maximum range from max_range is max_range × range_deviation ÷ 2. This means a deviation of 0.5 will appear as a maximum of 0.25 (25%) deviation of an initial range goal. Post-deviation range may exceed max_range or be less than min_range.

max_range :: double optional

Default: 1000

min_range :: double optional

Default: 0


Type used in

Prototypes

Types

Defines