Prototype/Beam: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Migrated prototype doc to separate website)
m (Protected "Prototype/Beam": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(No difference)

Revision as of 17:52, 16 August 2023

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/BeamPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


Template:Prototype parent Used as a laser beam.

Template:Prototype TOC

Mandatory properties

This prototype inherits all the properties from Prototype/Entity.

All animations must have the same number of frames: Tail must have same number of frames as start, ending, head, body, start_light, ending_light, head_light, tail_light and body_light.

Template:Prototype property

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

Template:Prototype property Head segment of the beam.

Template:Prototype property Tail segment of the beam.

Template:Prototype property Body segment of the beam. Must have at least 1 variation.

Optional properties

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property Whether this beams should trigger its action every damage_interval. If false, the action is instead triggered when its owner triggers shooting.

Template:Prototype property

Template:Prototype property

Template:Prototype property Start point of the beam.

Template:Prototype property End point of the beam.

Template:Prototype property Lights are additively accumulated onto lightmap, which is multiplicatively rendered on the game world.[1]

Table with the following members:

Template:Prototype property Table with the following members:

Template:Prototype property This and the below properties ending in "_light" are considered deprecated. If they are present, then light_animations and ground_light_animations are not loaded.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property