Class Trigger
From TrainzOnline
(Difference between revisions)
m |
(Change link to library reference, not language reference) |
||
Line 1: | Line 1: | ||
− | *[[TrainzScript | + | *[[TrainzScript Library Reference|API Hierarchy]] |
**[[Class GSObject|GSObject]] * | **[[Class GSObject|GSObject]] * | ||
***[[Class GameObject|GameObject]] | ***[[Class GameObject|GameObject]] |
Latest revision as of 23: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.
[edit] Related Messages
- 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 |