This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
usage:atlatc:api [2020-12-25 19:01] orwell example for schedule |
usage:atlatc:api [2021-03-02 20:15] orwell commit 6135f8a2 |
||
---|---|---|---|
Line 73: | Line 73: | ||
Causes the LuaAutomation mod to trigger an '' | Causes the LuaAutomation mod to trigger an '' | ||
+ | |||
+ | Use of this function is discouraged, | ||
+ | |||
+ | === interrupt_safe(time, | ||
+ | |||
+ | //since version 3.0// | ||
+ | |||
+ | Like '' | ||
===interrupt_pos(pos, | ===interrupt_pos(pos, | ||
Triggers immediately an '' | Triggers immediately an '' | ||
+ | |||
+ | === clear_interrupts() === | ||
+ | |||
+ | //since version 3.0// | ||
+ | |||
+ | Removes any pending interrupts (both of type ' | ||
+ | |||
+ | ==== Remote ATC ==== | ||
+ | |||
+ | //since version 3.0// | ||
+ | |||
+ | In addition to '' | ||
+ | |||
+ | === atc_send_to_train(train_id, | ||
+ | |||
+ | Sends the specified [[usage: | ||
+ | |||
+ | The ATC command is instantly applied to the train in question, regardless of where it is and what it is doing. It also cancels any active ATC command of the train. | ||
+ | |||
+ | Calling this function from an ATC rail is independent of any train that stands on the rail and does not affect it (except of course when train_id happens to be the ID of the train on the rail). | ||
==== Railway Time ==== | ==== Railway Time ==== |