From c7ea09ed59d54fda9a7537dba53538ef171a7ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Tue, 28 Jul 2020 20:10:08 +0200 Subject: Complete Documentation on return value of split_at_fc() --- advtrains_luaautomation/README.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'advtrains_luaautomation') 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() -- cgit v1.2.3