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-02-23 09:10] orwell |
usage:atlatc:api [2021-02-17 23:38] orwell add api of commit 5232c22f |
||
---|---|---|---|
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 ' | ||
+ | |||
==== Railway Time ==== | ==== Railway Time ==== | ||
Line 106: | Line 121: | ||
The time value here is an absolute value. | The time value here is an absolute value. | ||
msg can be any data type and is accessible in '' | msg can be any data type and is accessible in '' | ||
+ | < | ||
+ | -- Example: schedule a " | ||
+ | local now = rwt.now() | ||
+ | local next_5minutes = rwt.next_rpt(now, | ||
+ | schedule(next_5minutes, | ||
+ | </ | ||
=== schedule_in(rwtime, | === schedule_in(rwtime, |