Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# LuaControlBehavior - Runtime Docs

## Class LuaControlBehavior abstract

The control behavior for an entity. Inserters have logistic network and circuit network behavior logic, lamps have circuit logic and so on. This is an abstract base class that concrete control behaviors inherit.

An control reference becomes invalid once the control behavior is removed or the entity (see LuaEntity) it resides in is destroyed.

Children LuaAccumulatorControlBehavior LuaCargoLandingPadControlBehavior LuaCombinatorControlBehavior LuaArithmeticCombinatorControlBehavior LuaDeciderCombinatorControlBehavior LuaSelectorCombinatorControlBehavior LuaConstantCombinatorControlBehavior LuaContainerControlBehavior LuaDisplayPanelControlBehavior LuaGenericOnOffControlBehavior LuaAgriculturalTowerControlBehavior LuaArtilleryTurretControlBehavior LuaAssemblingMachineControlBehavior LuaAsteroidCollectorControlBehavior LuaFurnaceControlBehavior LuaInserterControlBehavior LuaLampControlBehavior LuaLoaderControlBehavior LuaMiningDrillControlBehavior LuaPumpControlBehavior LuaTrainStopControlBehavior LuaTransportBeltControlBehavior LuaTurretControlBehavior LuaLogisticContainerControlBehavior LuaProgrammableSpeakerControlBehavior LuaProxyContainerControlBehavior LuaRadarControlBehavior LuaRailSignalBaseControlBehavior LuaReactorControlBehavior LuaRoboportControlBehavior LuaRocketSiloControlBehavior LuaSpacePlatformHubControlBehavior LuaSplitterControlBehavior LuaStorageTankControlBehavior LuaWallControlBehavior

## Members

get_circuit_network(wire_connector_id) | → LuaCircuitNetwork? |
type | :: R defines.control_behavior.type | The concrete type of this control behavior.
The concrete type of this control behavior.
entity | :: R LuaEntity | The entity this control behavior belongs to.
The entity this control behavior belongs to.

## Methods

### get_circuit_network(wire_connector_id) → LuaCircuitNetwork?

#### Parameters

wire_connector_id | :: defines.wire_connector_id | Wire connector to get circuit network for.
Wire connector to get circuit network for.

#### Return values

→ LuaCircuitNetwork? | The circuit network or nil.

## Attributes

### type :: Read defines.control_behavior.type

The concrete type of this control behavior.

### entity :: Read LuaEntity

The entity this control behavior belongs to.

Class used in

- LuaEntity::get_control_behavior()
- LuaEntity::get_or_create_control_behavior()