Prototype/Beam: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(0.17)
Line 14: Line 14:


Damage interval can't be 0. A value of 1 will cause the attack to be applied each tick.
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 ==
== Optional properties ==
Line 26: Line 37:
'''Type''': [[Types/Animation]]
'''Type''': [[Types/Animation]]


=== head ===
=== target_offset ===
'''Type''': [[Types/Animation]]
'''Type''': [[Types/Vector]]
 
=== random_target_offset ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== random_end_animation_rotation ===
'''Type''': [[Types/bool]]


=== tail ===
'''Default''': true
'''Type''': [[Types/Animation]]


=== body ===
=== transparent_start_end_animations ===
'''Type''': [[Types/AnimationVariations]]
'''Type''': [[Types/bool]]


Must have at least 1 variation.
'''Default''': true

Revision as of 13:35, 5 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