Control behavior for constant combinators.
LuaControlBehaviorbooleanbooleanfalseTurns this constant combinator on and off.
Array<LuaLogisticSection>unknownfalseAll logistic sections of this constant combinator.
uint32unknownfalseAmount of logistic sections this constant combinator has.
booleanunknownfalseIs this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
stringunknownfalseThe class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
LuaConstantCombinatorControlBehavior.add_section(group?: string) -> LuaLogisticSection?
constantCombinatorControlBehavior.add_section()
takes_table: falsetable_optional: falseAdds a new logistic section to this constant combinator if possible.
group?: string — The group to assign this section to.LuaLogisticSection? — Logistic section if added.LuaConstantCombinatorControlBehavior.remove_section(section_index: uint32) -> boolean
constantCombinatorControlBehavior.remove_section(section_index)
takes_table: falsetable_optional: falseRemoves the given logistic section if possible. Removal may fail if the section index is out of range or the section is not manual.
section_index: uint32 — Index of the section.boolean — Whether section was removed.LuaConstantCombinatorControlBehavior.get_section(section_index: uint32) -> LuaLogisticSection?
constantCombinatorControlBehavior.get_section(section_index)
takes_table: falsetable_optional: falseGets section on the selected index, if it exists.
section_index: uint32 — Index of the section.LuaLogisticSection?