aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-07-28 12:00:27 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-07-28 12:00:27 +0200
commit3b9b884988420ded5df332906b6578bab69e23e1 (patch)
treed5ffbacaea77a906f83af2a5dded7a8e3fee45a6 /advtrains_luaautomation
parent549db4737f5f07d8a99236766a93a545fe39169a (diff)
downloadadvtrains-3b9b884988420ded5df332906b6578bab69e23e1.tar.gz
advtrains-3b9b884988420ded5df332906b6578bab69e23e1.tar.bz2
advtrains-3b9b884988420ded5df332906b6578bab69e23e1.zip
Document new luaatc commands
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/README.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/advtrains_luaautomation/README.txt b/advtrains_luaautomation/README.txt
index 65e068e..fd49f27 100644
--- a/advtrains_luaautomation/README.txt
+++ b/advtrains_luaautomation/README.txt
@@ -202,14 +202,27 @@ set_rc(routingcode)
The interlocking system uses this property for Automatic Routesetting.
split_at_index(index, command)
Splits the train at the specified index, into a train with index-1 wagons and a second train starting with the index-th wagon.
- command specifies an atc command to be sent to the second train after decoupling.
+ command specifies an atc command to be sent to the second train after decoupling.
+split_at_fc(command)
+ Splits the train in such a way that all cars with non-empty
+ current FC of the first part of the train have the same FC. The
+ command specified is sent to the rear part, as with split_at_index.
+
+ Example: Train has current FCs "" "" "foo" "bar" "boo" "foo"
+ Result: first train: "" "" "foo"; second train: "bar" "boo" "foo"
+step_fc()
+ Steps the FCs of all train cars forward
+train_length()
+ returns the number of cars the train is composed of
set_autocouple()
Sets the train into autocouple mode
unset_autocouple()
Unsets autocouple mode
+
set_shunt(), unset_shunt()
deprecated aliases for set_autocouple() and unset_autocouple(), will be removed from a later release.
+
# 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.