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

# Factorio Runtime Docs Version 2.0.77

# RegistrationTarget - Runtime Docs

## RegistrationTarget :: union

Represents an object that can be registered for the on_object_destroyed event. Each target has an associated defines.target_type and some have a unique identifier.

#### Union members

LuaEntity | Target type entity; `useful_id` LuaEntity::unit_number
LuaEquipment | Target type equipment
LuaEquipmentGrid | Target type equipment_grid; `useful_id` LuaEquipmentGrid::unique_id
LuaItem | Target type item; `useful_id` LuaItemCommon::item_number
LuaLogisticCell | Target type logistic_cell
LuaLogisticNetwork | Target type logistic_network; `useful_id` LuaLogisticNetwork::network_id
LuaLogisticSection | Target type logistic_section
LuaPermissionGroup | Target type permission_group; `useful_id` LuaPermissionGroup::group_id
LuaPlanet | Target type planet
LuaPlayer | Target type player; `useful_id` LuaPlayer::index
LuaRailPath | Target type rail_path
LuaRenderObject | Target type render_object; `useful_id` LuaRenderObject::id
LuaSpacePlatform | Target type space_platform; `useful_id` LuaSpacePlatform::index
LuaSurface | Target type surface; `useful_id` LuaSurface::index
LuaTrain | Target type train; `useful_id` LuaTrain::id
LuaCommandable | Target type commandable; `useful_id` LuaCommandable::unique_id
LuaCustomChartTag | Target type custom_chart_tag; `useful_id` LuaCustomChartTag::tag_number
LuaGuiElement | Target type gui_element; `useful_id` LuaGuiElement::index
LuaCargoHatch | Target type cargo_hatch
LuaSchedule | Target type schedule
LuaTerritory | Target type territory
LuaSegmentedUnit | Target type segmented_unit; `useful_id` LuaSegmentedUnit::unit_number

Concept used in

- LuaBootstrap::register_on_object_destroyed()