Prototype/Sticker: Difference between revisions
(Migrated prototype doc to separate website) |
m (Protected "Prototype/Sticker": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
Revision as of 17:53, 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/StickerPrototype.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 Entity that sticks to another entity, and damages/slows it. Stickers can only be attached to Prototype/Unit, Prototype/Character, Prototype/Car and Prototype/SpiderVehicle.
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
Template:Prototype property Must be > 0.
Optional properties
Template:Prototype property
Interval between application of damage_per_tick
, in ticks.
Template:Prototype property Name of an entity. If this is given, this sticker is considered a "fire sticker" for some functions, such as BaseAttackParameters#fire_penalty and EntityPrototypeFlags#.22not-flammable.22.
Template:Prototype property
Applied every damage_interval
ticks, so may not necessarily be "per tick".
Template:Prototype property Less than 1 to reduce movement speed, more than 1 to increase it.
Template:Prototype property
The modifier value when the sticker is attached. It linearly changes over time to reach target_movement_modifier_to
.
Template:Prototype property
The modifier value when the sticker expires. It linearly changes over time starting from target_movement_modifier_from
.
Template:Prototype property Less than 1 to reduce vehicle speed, more than 1 to increase it.
Template:Prototype property
Works similarly to target_movement_modifier_from
.
Template:Prototype property
Works similarly to target_movement_modifier_to
.
Template:Prototype property
Works similarly to target_movement_modifier_from
.
Template:Prototype property
Works similarly to target_movement_modifier_to
.
Template:Prototype property Using this property marks the sticker as a "selection sticker", meaning that the selection box will be rendered around the entity when the sticker is on it.