Class Trigger: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Andi06 (talk | contribs)
 
Danny252 (talk | contribs)
Change link to library reference, not language reference
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
*[[TrainzScript Langage Reference|API Hierarchy]]
*[[TrainzScript Library Reference|API Hierarchy]]
**[[Class GSObject|GSObject]] *
**[[Class GSObject|GSObject]] *
***[[Class GameObject|GameObject]]
***[[Class GameObject|GameObject]]

Latest revision as of 13:43, 28 December 2020


The interface methods to control and obtain information about the status of a Trigger can be found in the Trackside parent class.

  • Messages sent to and from Trigger objects are listed below:
  • To enable these messages the object must contain the tag trigger 1 in its config.txt file.


Major Minor Source Destination
Trigger Enter Trigger Train
Trigger Stopped Trigger Train
Trigger Leave Trigger Train
Object Enter Train Trigger
Object Stopped Train Trigger
Object Leave Train Trigger


Categories