aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/README.txt
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-07-28 20:39:35 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-07-28 20:39:35 +0200
commit36d8c8b7162b3b6ba6cc0a7f98b0dc295024ecd8 (patch)
treee2c76537639fd20e2765e878e2475b855db2a4bb /advtrains_luaautomation/README.txt
parentc7ea09ed59d54fda9a7537dba53538ef171a7ba8 (diff)
downloadadvtrains-36d8c8b7162b3b6ba6cc0a7f98b0dc295024ecd8.tar.gz
advtrains-36d8c8b7162b3b6ba6cc0a7f98b0dc295024ecd8.tar.bz2
advtrains-36d8c8b7162b3b6ba6cc0a7f98b0dc295024ecd8.zip
Add command to split off locomotive
Diffstat (limited to 'advtrains_luaautomation/README.txt')
-rw-r--r--advtrains_luaautomation/README.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/advtrains_luaautomation/README.txt b/advtrains_luaautomation/README.txt
index bf7ac52..a495a8d 100644
--- a/advtrains_luaautomation/README.txt
+++ b/advtrains_luaautomation/README.txt
@@ -206,12 +206,16 @@ split_at_index(index, command)
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.
- It returns the fc of the cars of the first part.
+ command specified is sent to the rear part, as with
+ split_at_index. It returns the fc of the cars of the first part.
- Example: Train has current FCs "" "" "foo" "bar" "boo" "foo"
- Result: first train: "" "" "foo"; second train: "bar" "boo" "foo"
+ Example : Train has current FCs "" "" "foo" "bar" "foo"
+ Result: first train: "" "" "foo"; second train: "bar" "foo"
The command returns "foo" in this case
+split_off_locomotive(command)
+ Splits off the locomotives at the front of the train, which are
+ identified by an empty FC. command specifies the command to be
+ executed by the rear half of the train.
step_fc()
Steps the FCs of all train cars forward
train_length()