Prototype/Corpse

From Official Factorio Wiki
Revision as of 10:42, 21 September 2023 by BilkaBot (talk | contribs) (Updated styling of prototype doc migration note)
Jump to navigation Jump to search

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/CorpsePrototype.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 for corpses, for example the remnants when destroying buildings.

Template:Prototype TOC

Extensions

Optional properties

Template:Prototype property Multiplier for #time_before_shading_off and #time_before_removed. Must be positive.

Controls the speed of the animation: 1 ÷ dying_speed = duration of the animation

Template:Prototype property

Controls the speed of the splash animation: 1 ÷ splash_speed = duration of the splash animation

Template:Prototype property Controls how long the corpse takes to fade, as in how long it takes to get from no transparency to full tranparency/removed. This time is not added to #time_before_removed, it is instead substracted from it. So by default, the corpse starts fading about 15 seconds before it gets removed.

Template:Prototype property Time in ticks this corpse lasts. May not be 0.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property The dying animation.

Template:Prototype property Variation count must be the same as animation variation count. Direction count must be the same as animation direction count. Frame count must be the same as animation frame count.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property An array of arrays of integers. Arrays are called "groups" and must all have the same size.