User Tools

Site Tools


usage:atlatc:events

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
usage:atlatc:events [2020/01/28 10:27]
orwell
usage:atlatc:events [2020/04/27 16:38] (current)
orwell add has_entered note
Line 111: Line 111:
     approach = true,     approach = true,
     id = <​train_id>,​     id = <​train_id>,​
 +    has_entered = <​boolean>,​ (latest development version only)
 } }
 </​code>​ </​code>​
Line 117: Line 118:
   * **This function is available only in the ''​[[http://​git.bananach.space/​advtrains.git/​tree/?​h=luaatc-extensions|luaatc-extensions]]''​ branch of Advtrains.**   * **This function is available only in the ''​[[http://​git.bananach.space/​advtrains.git/​tree/?​h=luaatc-extensions|luaatc-extensions]]''​ branch of Advtrains.**
   * **This function is available only when the [[#​approach_callback_mechanism|approach callback mechanism]] is enabled.**   * **This function is available only when the [[#​approach_callback_mechanism|approach callback mechanism]] is enabled.**
 +
 +`has_entered` is set to true when the tip of the train is already standing on the node, i.e. the "​train"​ event has already fired.
  
 === Approach callback mechanism === === Approach callback mechanism ===
usage/atlatc/events.1580203663.txt.gz · Last modified: 2020/01/28 10:27 by orwell