aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_luaautomation/README.txt
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-02-04 18:35:34 +0100
committerorwell96 <mono96.mml@gmail.com>2017-02-04 18:35:34 +0100
commit61e48fff280075ec52bfaa31644c22b08814d680 (patch)
treec7cac2a799bfe4bf6f180617f96c1035e04b26df /advtrains/advtrains_luaautomation/README.txt
parent1e3bd3a5fd5d448fa123ba02012f935fbc29880a (diff)
downloadadvtrains-61e48fff280075ec52bfaa31644c22b08814d680.tar.gz
advtrains-61e48fff280075ec52bfaa31644c22b08814d680.tar.bz2
advtrains-61e48fff280075ec52bfaa31644c22b08814d680.zip
Commit 1.6.2
- Add some more stuff to API for LuaATC rails - Warn on strange events even if debug info is disabled - save atlatc on shutdown too - fix detector rails in unloaded chunks - do not fail silently in simple ATC rails
Diffstat (limited to 'advtrains/advtrains_luaautomation/README.txt')
-rw-r--r--advtrains/advtrains_luaautomation/README.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/advtrains/advtrains_luaautomation/README.txt b/advtrains/advtrains_luaautomation/README.txt
index 41ffdb0..6a2114b 100644
--- a/advtrains/advtrains_luaautomation/README.txt
+++ b/advtrains/advtrains_luaautomation/README.txt
@@ -117,13 +117,15 @@ Fired when another node called 'interrupt_pos' on this position. 'message' is th
In addition to the default environment functions, the following functions are available:
atc_send(<atc_command>)
-Sends the specified ATC command to the train and returns true. If there is no train, returns false and does nothing.
-
+ Sends the specified ATC command to the train and returns true. If there is no train, returns false and does nothing.
atc_reset()
-Resets the train's current ATC command
-
+ Resets the train's current ATC command. If there is no train, returns false and does nothing.
atc_arrow
-Boolean, true when the train is driving in the direction of the arrows of the ATC rail
+ Boolean, true when the train is driving in the direction of the arrows of the ATC rail. Nil if there is no train.
+atc_id
+ Train ID of the train currently passing the controller. Nil if there's no train.
+atc_speed
+ Speed of the train, or nil if there is no 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.