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

# Factorio Runtime Docs Version 2.0.77

# TrainPathAllGoalsResult - Runtime Docs

## TrainPathAllGoalsResult :: table

#### Table fields

amount_accessible | :: uint32 | Amount of goals that are accessible.
Amount of goals that are accessible.
accessible | :: array[boolean] | Array of the same length as requested goals: each field will tell if related goal is accessible for the train.
Array of the same length as requested goals: each field will tell if related goal is accessible for the train.
penalties | :: array[double]? | Array of the same length as requested goals. Only present if request type was `"all-goals-penalties"`.
Array of the same length as requested goals. Only present if request type was `"all-goals-penalties"`.
steps_count | :: uint32 | Amount of steps pathfinder performed. This is a measure of how expensive this search was.
Amount of steps pathfinder performed. This is a measure of how expensive this search was.

Concept used in

- LuaTrainManager::request_train_path()