This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
usage:nodes:atc_controller [2019-12-18 12:09] mlaunois added new commands (BB and A0); updated inventory image |
usage:nodes:atc_controller [2022-06-27 02:32] (current) blockhead [Speed commands] grammar |
||
---|---|---|---|
Line 38: | Line 38: | ||
=== S< | === S< | ||
- | Sets the target speed of driving train to ''< | + | Sets the target speed of driving train to ''< |
''< | ''< | ||
* a number constituted only of digits. This represents the speed in metres per second (1 m/s = 3.6 km/h), or | * a number constituted only of digits. This represents the speed in metres per second (1 m/s = 3.6 km/h), or | ||
- | * the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[reference:advtrains: | + | * the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[dev:core:funref: |
Execution of the ATC command continues **immediately**. | Execution of the ATC command continues **immediately**. | ||
Line 83: | Line 83: | ||
Close doors previously opened by '' | Close doors previously opened by '' | ||
+ | |||
+ | === K === | ||
+ | |||
+ | Kicks all passengers (except drivers) out of the train. Door must be opened to do this. Useful at terminal stations. | ||
+ | |||
+ | ==== Other Commands ==== | ||
+ | |||
+ | === Cpl === | ||
+ | |||
+ | Temporarily switch the train to " | ||
+ | |||
+ | This command makes the train continue at its current speed until it hits another standing wagon or train. Then, it couples to this train and ATC command execution continues. | ||
+ | |||
+ | After coupling, the train retains its current target speed. If you do not include a '' | ||
+ | |||
+ | **Note to LuaATC users:** When using this command, the train running the ATC command is guaranteed to retain its Train ID. The Train ID of the standing train that it is coupled to becomes invalid. | ||
+ | |||
+ | //Note: This command is unique in that its command code is a 3-letter code. Future ATC extensions should also introduce multi-letter codes to avoid exhaustion of letter space for single-letter codes.// | ||
==== Conditional statements ==== | ==== Conditional statements ==== | ||
Line 147: | Line 165: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | ==== Cpl ==== | ||
+ | |||
+ | * '' | ||
==== OL, OR, OC ==== | ==== OL, OR, OC ==== | ||
Line 155: | Line 177: | ||
==== I, +/-, </< | ==== I, +/-, </< | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
===== Trivia ===== | ===== Trivia ===== |