Types/EntityPrototypeFlags: Difference between revisions
Muppet9010 (talk | contribs)  add 0.17 new flags  | 
				 0.17.21  | 
				||
| Line 1: | Line 1: | ||
Array ([[Types/table]]) of strings. The possible strings are listed below.  | |||
== "not-rotatable" ==  | == "not-rotatable" ==  | ||
Can't be rotated before or after placing.  | Can't be rotated before or after placing.  | ||
| Line 6: | Line 8: | ||
*"placeable-neutral"  | *"placeable-neutral"  | ||
*"placeable-enemy"  | *"placeable-enemy"  | ||
placeable neutral/player/enemy   | placeable neutral/player/enemy determine the default force when placing entities in the map editor and using the *AUTO* option for the force.  | ||
== "placeable-off-grid" ==  | == "placeable-off-grid" ==  | ||
| Line 28: | Line 30: | ||
== "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-on-map" ==  | |||
The entity does not get drawn on the map.  | |||
== "not-blueprintable" ==  | == "not-blueprintable" ==  | ||
| Line 35: | Line 40: | ||
The entity can't be deconstructed.  | The entity can't be deconstructed.  | ||
== "  | == "hidden" ==  | ||
Hides the entity from the bonus GUI (button above the map) and from the made in property of recipe tooltips.  | |||
Hides the entity from the bonus GUI (button above the map).  | |||
== "hide-alt-info" ==  | == "hide-alt-info" ==  | ||
| Line 53: | Line 55: | ||
== "no-automated-item-removal" ==  | == "no-automated-item-removal" ==  | ||
Prevents inserters and loaders from taking items from this entity.  | |||
== "no-automated-item-insertion" ==  | == "no-automated-item-insertion" ==  | ||
Prevents inserters and loaders from inserting items into this entity.  | |||
== "no-copy-paste" ==  | |||
== "not-selectable-in-game" ==  | |||
== "not-upgradable" ==    | == "not-upgradable" ==    | ||
Revision as of 10:56, 27 March 2019
Array (Types/table) of strings. The possible strings are listed below.
"not-rotatable"
Can't be rotated before or after placing.
"placeable-[force]"
- "placeable-player"
 - "placeable-neutral"
 - "placeable-enemy"
 
placeable neutral/player/enemy determine the default force when placing entities in the map editor and using the *AUTO* option for the force.
"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-on-map"
The entity does not get drawn on the map.
"not-blueprintable"
The entity can't be used in blueprints.
"not-deconstructable"
The entity can't be deconstructed.
Hides the entity from the bonus GUI (button above the map) and from the made in property of recipe tooltips.
"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-automated-item-removal"
Prevents inserters and loaders from taking items from this entity.
"no-automated-item-insertion"
Prevents inserters and loaders from inserting items into this entity.
"no-copy-paste"
"not-selectable-in-game"
"not-upgradable"
The entity can't be selected by the Upgrade Planner tool.
Example
   flags = {"placeable-neutral", "player-creation"}