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

# Factorio Runtime Docs Version 2.0.77

# AddRecordData - Runtime Docs

## AddRecordData :: table

#### Table fields

station | :: string? | One of station or rail must be given.
One of station or rail must be given.
rail | :: LuaEntity? |
rail_direction | :: defines.rail_direction? | When `rail` is given, this can be provided to further narrow down direction from which that rail should be approached.
When `rail` is given, this can be provided to further narrow down direction from which that rail should be approached.
temporary | :: boolean? | Defaults to `false`.
Defaults to `false`.
created_by_interrupt | :: boolean? | Defaults to `false`.
Defaults to `false`.
allows_unloading | :: boolean? | Defaults to `true`.
Defaults to `true`.
wait_conditions | :: array[WaitCondition]? |
index | :: ScheduleRecordPosition? | If record position is not given, the record is appended.
If record position is not given, the record is appended.

Concept used in

- LuaSchedule::add_record()