aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/atc_rail.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua
index 3ec82c8..1fae28d 100644
--- a/advtrains_luaautomation/atc_rail.lua
+++ b/advtrains_luaautomation/atc_rail.lua
@@ -58,6 +58,10 @@ function r.fire_event(pos, evtdata)
train.atc_arrow=atc_arrow
return true
end,
+ set_line = function(line)
+ train.line = line
+ return true
+ end,
atc_reset = function(cmd)
if not train_id then return false end
assertt(cmd, "string")