aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/atc_rail.lua
diff options
context:
space:
mode:
authorGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2017-10-23 13:33:27 +0200
committerorwell96 <mono96.mml@gmail.com>2017-10-23 13:40:20 +0200
commit11d6a12ce7752c7640c3cb85e76814ebeb3f94ef (patch)
treed10962792b5597bf8a2b39d912beda4255c591fc /advtrains_luaautomation/atc_rail.lua
parentbe771d9413f3ddddaa5dcb4cbad9055a580499cb (diff)
downloadadvtrains-11d6a12ce7752c7640c3cb85e76814ebeb3f94ef.tar.gz
advtrains-11d6a12ce7752c7640c3cb85e76814ebeb3f94ef.tar.bz2
advtrains-11d6a12ce7752c7640c3cb85e76814ebeb3f94ef.zip
Set wagon line number
Diffstat (limited to 'advtrains_luaautomation/atc_rail.lua')
-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")