Prototype/Beam: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
m (typo)
Line 38: Line 38:


=== target_offset ===
=== target_offset ===
'''Type''': [[Types/Vector]]
'''Type''': [[Types/vector]]


=== random_target_offset ===
=== random_target_offset ===

Revision as of 17:02, 28 March 2019

Basics

Prototype type: beam

Extends Prototype/Entity.

Mandatory properties

This prototype inherits all the properties from Prototype/Entity.

width

Type: Types/double

damage_interval

Type: Types/uint32

Damage interval can't be 0. A value of 1 will cause the attack to be applied each tick.

head

Type: Types/Animation

tail

Type: Types/Animation

body

Type: Types/AnimationVariations

Must have at least 1 variation.

Optional properties

action

Type: Types/Trigger

start

Type: Types/Animation

ending

Type: Types/Animation

target_offset

Type: Types/vector

random_target_offset

Type: Types/bool

Default: false

random_end_animation_rotation

Type: Types/bool

Default: true

transparent_start_end_animations

Type: Types/bool

Default: true