From a758426835f07437da897b9e4a8bab7b6cf0542e Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 14 Jun 2018 21:31:35 +0200 Subject: Correct some documentation --- advtrains_luaautomation/README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains_luaautomation/README.txt') diff --git a/advtrains_luaautomation/README.txt b/advtrains_luaautomation/README.txt index faf3cbb..113ff90 100644 --- a/advtrains_luaautomation/README.txt +++ b/advtrains_luaautomation/README.txt @@ -111,7 +111,7 @@ The 'event' table of the init code is always {type="init", init=true}. The Lua-controlled ATC rails are the only components that can actually interface with trains. The following event types are generated: {type="train", train=true, id=""} -This event is fired when a train enters the rail. The field 'id' is the unique train ID, which is a long string (generated by concatenating os.time() and os.clock() at creation time). The Itrainmap mod displays the last 4 digits of this ID. +This event is fired when a train enters the rail. The field 'id' is the unique train ID, which is 6-digit random numerical string. {type="int", int=true, message=} Fired when an interrupt set by the 'interrupt' function runs out. 'message' is the message passed to the interrupt function. -- cgit v1.2.3