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.
Used for corpses, for example the remnants when destroying buildings.
- Prototype/RailRemnants rail-remnants
Controls the speed of the animation:
1 ÷ dying_speed = duration of the animation
Controls the speed of the splash animation:
1 ÷ splash_speed = duration of the splash animation
Default: 60 * 15 (15 seconds)
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.
Default: 60 * 120 (120 seconds)
Time in ticks this corpse lasts. May not be 0.
The dying animation.
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.