aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/README.txt
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-11-20 11:57:46 +0100
committerorwell96 <orwell@bleipb.de>2018-11-20 11:57:46 +0100
commit37166b5c142b6b3578e589b75b86d2e11345f49d (patch)
treea3f09325dbe4c141d277c11c7a9016a6b711e1bb /advtrains_luaautomation/README.txt
parent8b80742fa5b21392999dbe6a3d259d57068899f3 (diff)
downloadadvtrains-37166b5c142b6b3578e589b75b86d2e11345f49d.tar.gz
advtrains-37166b5c142b6b3578e589b75b86d2e11345f49d.tar.bz2
advtrains-37166b5c142b6b3578e589b75b86d2e11345f49d.zip
Make "Line" property accessible from OBC and gettable via LATC, change subway wagon texture handling
Diffstat (limited to 'advtrains_luaautomation/README.txt')
-rw-r--r--advtrains_luaautomation/README.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/advtrains_luaautomation/README.txt b/advtrains_luaautomation/README.txt
index 279b07d..2963192 100644
--- a/advtrains_luaautomation/README.txt
+++ b/advtrains_luaautomation/README.txt
@@ -173,8 +173,14 @@ atc_set_text_outside(text)
Set text shown on the outside of the train. Pass nil to show no text.
atc_set_text_inside(text)
Set text shown to train passengers. Pass nil to show no text.
+get_line()
+ Returns the "Line" property of the train (a string).
+ This can be used to distinguish between trains of different lines and route them appropriately.
+ The interlocking system also uses this property for Automatic Routesetting.
set_line(number)
- Only for subway wagons: Display a line number (1-9) on the train.
+ Sets the "Line" property of the train (a string).
+ If the first digit of this string is a number (0-9), any subway wagons on the train will have this one displayed as line number
+ (where "0" is actually shown as Line 10 on the train)
# Operator panel
This simple node executes its actions when punched. It can be used to change a switch and update the corresponding signals or similar applications.