Types/EntityPrototypeFlags: Difference between revisions
m (update to 0.15?) |
(0.16) |
||
Line 1: | Line 1: | ||
== "not-rotatable" == | |||
Can't be rotated before or after placing. | |||
== "placeable-[force]" == | == "placeable-[force]" == | ||
*"placeable-player" | *"placeable-player" | ||
Line 5: | Line 8: | ||
placeable neutral/player/enemy will add the entities to the screens in the map editor. For example, the biter-spawner has the placable-player and placeable-enemy flags. If you go into the map editor and use 'f' to switch between player entities and enemy entities you will see that both have a creeper spawner. If you were to place one of each in the map (along with a player) and then save/play it, you would see the creepers attacking each other since they are on opposing forces. On the other hand, if you were to add the "placeable-neutral" flag and (after restarting factorio if you left it running) place one next to the two previous spawners, the neutral creepers would neither attack the other creepers nor be attacked by them. | placeable neutral/player/enemy will add the entities to the screens in the map editor. For example, the biter-spawner has the placable-player and placeable-enemy flags. If you go into the map editor and use 'f' to switch between player entities and enemy entities you will see that both have a creeper spawner. If you were to place one of each in the map (along with a player) and then save/play it, you would see the creepers attacking each other since they are on opposing forces. On the other hand, if you were to add the "placeable-neutral" flag and (after restarting factorio if you left it running) place one next to the two previous spawners, the neutral creepers would neither attack the other creepers nor be attacked by them. | ||
=="placeable-off-grid"== | == "placeable-off-grid" == | ||
placeable-off-grid refers to the fact that most entities are placed on an invisible 'grid' within the world, entities with the placeable-off-grid flag do not have to line up with this grid (like trees | placeable-off-grid refers to the fact that most entities are placed on an invisible 'grid' within the world, entities with the placeable-off-grid flag do not have to line up with this grid (like trees and land-mines) | ||
== "player-creation" == | |||
Makes it possible for the biter AI to target the entity as a distraction. | |||
== "building-direction-8-way" == | |||
Uses 45 degree angle increments when selecting direction. | |||
==" | == "filter-directions" == | ||
Used to automatically detect the proper direction, if possible. Used by base with the pump, train stop, and train signal. | |||
==" | == "fast-replaceable-no-build-while-moving" == | ||
Fast replace will not apply when building while moving. | |||
=="breaths-air"== | == "breaths-air" == | ||
This is used to specify that the entity breaths air, and so is affected by poison (currently [[Poison_capsule|Poison Capsules]] are the only source). | This is used to specify that the entity breaths air, and so is affected by poison (currently [[Poison_capsule|Poison Capsules]] are the only source). | ||
=="not-repairable"== | == "not-repairable" == | ||
Used to specify that the entity can not be 'healed' by repair-packs (or construction robots with repair packs) | Used to specify that the entity can not be 'healed' by repair-packs (or construction robots with repair packs) | ||
==" | == "not-blueprintable" == | ||
The entity can't be used in blueprints. | |||
== "not-deconstructable" == | |||
The entity can't be deconstructed. | |||
==" | == "not-on-map" == | ||
The entity does not get drawn on the map. | |||
==" | == "hide-from-bonus-gui" == | ||
Hides the entity from the bonus GUI (button above the map). | |||
== "hide-alt-info" == | |||
Hides the alt-info of an entity in alt-mode, for example the recipe icon. | |||
==" | == "fast-replaceable-no-cross-type-while-moving" == | ||
Do not fast replace over other entity types when building while moving. | |||
==" | == "no-gap-fill-while-building" == | ||
=="not- | == "not-flammable" == | ||
Do not apply fire stickers to the entity. | |||
== "no-crop" == | == "no-crop" == |
Revision as of 11:17, 27 March 2018
"not-rotatable"
Can't be rotated before or after placing.
"placeable-[force]"
- "placeable-player"
- "placeable-neutral"
- "placeable-enemy"
placeable neutral/player/enemy will add the entities to the screens in the map editor. For example, the biter-spawner has the placable-player and placeable-enemy flags. If you go into the map editor and use 'f' to switch between player entities and enemy entities you will see that both have a creeper spawner. If you were to place one of each in the map (along with a player) and then save/play it, you would see the creepers attacking each other since they are on opposing forces. On the other hand, if you were to add the "placeable-neutral" flag and (after restarting factorio if you left it running) place one next to the two previous spawners, the neutral creepers would neither attack the other creepers nor be attacked by them.
"placeable-off-grid"
placeable-off-grid refers to the fact that most entities are placed on an invisible 'grid' within the world, entities with the placeable-off-grid flag do not have to line up with this grid (like trees and land-mines)
"player-creation"
Makes it possible for the biter AI to target the entity as a distraction.
"building-direction-8-way"
Uses 45 degree angle increments when selecting direction.
"filter-directions"
Used to automatically detect the proper direction, if possible. Used by base with the pump, train stop, and train signal.
"fast-replaceable-no-build-while-moving"
Fast replace will not apply when building while moving.
"breaths-air"
This is used to specify that the entity breaths air, and so is affected by poison (currently Poison Capsules are the only source).
"not-repairable"
Used to specify that the entity can not be 'healed' by repair-packs (or construction robots with repair packs)
"not-blueprintable"
The entity can't be used in blueprints.
"not-deconstructable"
The entity can't be deconstructed.
"not-on-map"
The entity does not get drawn on the map.
"hide-from-bonus-gui"
Hides the entity from the bonus GUI (button above the map).
"hide-alt-info"
Hides the alt-info of an entity in alt-mode, for example the recipe icon.
"fast-replaceable-no-cross-type-while-moving"
Do not fast replace over other entity types when building while moving.
"no-gap-fill-while-building"
"not-flammable"
Do not apply fire stickers to the entity.
"no-crop"
The sprite of the entity won't be automatically cropped.
Example
flags = {"placeable-neutral", "player-creation"}