Types/ProjectileTriggerDelivery: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (→‎direction_deviation: description for direction deviation)
Line 22: Line 22:


=== direction_deviation ===
=== direction_deviation ===
'''Type''': [[Types/float]]
Maximum deviation of the projectile from source orientation, in +/- ( X radians / 2). Example: 3.14 radians -> +/- (180° / 2). Up to 90° deviation in either direction of rotation.</br>
 
'''Type''': [[Types/float]]</br>
'''Default''': 0
'''Default''': 0



Revision as of 03:30, 19 July 2021

Extends Types/TriggerDelivery.

Mandatory properties

projectile

Type: Types/string

Name of a Prototype/Projectile.

starting_speed

Type: Types/float

Starting speed in tiles per tick.

Optional properties

Inherits "source_effects" and "target_effects" properties from Types/TriggerDelivery.

starting_speed_deviation

Type: Types/float

Default: 0

direction_deviation

Maximum deviation of the projectile from source orientation, in +/- ( X radians / 2). Example: 3.14 radians -> +/- (180° / 2). Up to 90° deviation in either direction of rotation.
Type: Types/float
Default: 0

range_deviation

Type: Types/float

Default: 0

max_range

Type: Types/double

Default: 1000

min_range

Type: Types/double

Default: 0