diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-07-28 20:10:08 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-07-28 20:10:08 +0200 |
commit | c7ea09ed59d54fda9a7537dba53538ef171a7ba8 (patch) | |
tree | 745d821c9326b35c55597f1338b463f7f3a88242 | |
parent | 3b9b884988420ded5df332906b6578bab69e23e1 (diff) | |
download | advtrains-c7ea09ed59d54fda9a7537dba53538ef171a7ba8.tar.gz advtrains-c7ea09ed59d54fda9a7537dba53538ef171a7ba8.tar.bz2 advtrains-c7ea09ed59d54fda9a7537dba53538ef171a7ba8.zip |
Complete Documentation on return value of split_at_fc()
-rw-r--r-- | advtrains_luaautomation/README.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains_luaautomation/README.txt b/advtrains_luaautomation/README.txt index fd49f27..bf7ac52 100644 --- a/advtrains_luaautomation/README.txt +++ b/advtrains_luaautomation/README.txt @@ -207,9 +207,11 @@ 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. Example: Train has current FCs "" "" "foo" "bar" "boo" "foo" Result: first train: "" "" "foo"; second train: "bar" "boo" "foo" + The command returns "foo" in this case step_fc() Steps the FCs of all train cars forward train_length() |