From 45413ee5c031d9d44342a09f4ac8b412a75568be Mon Sep 17 00:00:00 2001 From: Gabriel PĂ©rez-Cerezo Date: Sun, 26 Jul 2020 23:28:24 +0200 Subject: Add function to step through freight codes --- advtrains_luaautomation/atc_rail.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'advtrains_luaautomation') diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index 69c519a..04e2f85 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -75,6 +75,10 @@ function r.fire_event(pos, evtdata) end return fc end, + step_fc = function() + if not train_id then return false end + advtrains.train_step_fc(train) + end, set_shunt = function() if not train_id then return false end train.autocouple = true -- cgit v1.2.3