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

# Factorio Runtime Docs Version 2.0.77

# RailEndStart - Runtime Docs

## RailEndStart :: table

#### Table fields

rail | :: LuaEntity |
direction | :: defines.rail_direction |
allow_path_within_segment | :: boolean? | Defaults to `true`. Providing false will cause the pathfinder to reject a path that starts here and ends in the same segment as the path would be too short to provide correct alignment with a goal.
Defaults to `true`. Providing false will cause the pathfinder to reject a path that starts here and ends in the same segment as the path would be too short to provide correct alignment with a goal.
is_front | :: boolean? | Defaults to `false`.
Defaults to `false`.
priority | :: uint8? | Start priority. Defaults to `50`.
Start priority. Defaults to `50`.

Concept used in

- LuaTrainManager::request_train_path()