How to Use Track Triggers
m (→Configuring a Trigger) |
m (→Creating a Trigger Event) |
||
Line 90: | Line 90: | ||
</tr> | </tr> | ||
</table> | </table> | ||
+ | <br> | ||
This will add the '''Trigger Check''' rule to the session. | This will add the '''Trigger Check''' rule to the session. | ||
<table> | <table> | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:TriggerCheck.JPG]]</td> | <td>[[file:TriggerCheck.JPG]]</td> | ||
− | <td>With the '''Trigger Check''' rule highlighted, click the '''Edit''' button. This will open its properties window. | + | <td><br> |
+ | *With the '''Trigger Check''' rule highlighted, click the '''Edit''' button. This will open its properties window. | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
+ | <br> | ||
For this example we will leave all settings unchanged and simply identify the trigger to be used. | For this example we will leave all settings unchanged and simply identify the trigger to be used. | ||
<table> | <table> | ||
<tr valign="top"> | <tr valign="top"> | ||
<td rowspan="2">[[file:TriggerCheckProperties.JPG]]</td> | <td rowspan="2">[[file:TriggerCheckProperties.JPG]]</td> | ||
− | <td>Click the '''''Add trigger''''' link and select the trigger you have previously added. | + | <td><br> |
+ | *Click the '''''Add trigger''''' link and select the trigger you have previously added. | ||
</td> | </td> | ||
</tr> | </tr> | ||
Line 110: | Line 114: | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | <br>Click the '''Tick''' icon on the selection list | + | <br> |
+ | *Click the '''Tick''' icon on the selection list | ||
+ | *Click the '''Tick''' icon '''Trigger Check''' properties window.<br><br> | ||
To test your trigger event you will need to add a rule to the Trigger Check. When you are back in the '''Session Editor''' window, click the '''Add''' button to add a new rule. | To test your trigger event you will need to add a rule to the Trigger Check. When you are back in the '''Session Editor''' window, click the '''Add''' button to add a new rule. | ||
− | + | <br> | |
<table> | <table> | ||
<tr valign="top"> | <tr valign="top"> | ||
<td rowspan="2">[[file:TriggerAddMesPopup.JPG]]</td> | <td rowspan="2">[[file:TriggerAddMesPopup.JPG]]</td> | ||
− | <td><br>Scroll down the rule selection window to select the '''Message Popup''' rule | + | <td><br> |
+ | *Scroll down the rule selection window to select the '''Message Popup''' rule | ||
+ | *Click the '''Tick''' icon. | ||
</td> | </td> | ||
</tr> | </tr> | ||
Line 128: | Line 136: | ||
The '''Message Popup Rule''' has to be ''indented'' so that it becomes a ''Child'' of the '''Trigger Check Rule'''. | The '''Message Popup Rule''' has to be ''indented'' so that it becomes a ''Child'' of the '''Trigger Check Rule'''. | ||
− | + | <br> | |
<table> | <table> | ||
<tr valign="top"> | <tr valign="top"> | ||
<td rowspan="2">[[file:SessionRuleIndent.JPG]]</td> | <td rowspan="2">[[file:SessionRuleIndent.JPG]]</td> | ||
− | <td><br>With the '''Message Popup Rule''' highlighted, click the '''''Indent''''' (''right arrow'') button. | + | <td><br> |
+ | *With the '''Message Popup Rule''' highlighted, click the '''''Indent''''' (''right arrow'') button. | ||
</td> | </td> | ||
</tr> | </tr> | ||
Line 144: | Line 153: | ||
<br> | <br> | ||
− | With the '''Message Popup Rule''' highlighted, click the '''Edit''' button. | + | *With the '''Message Popup Rule''' highlighted, click the '''Edit''' button. |
<table> | <table> | ||
Line 155: | Line 164: | ||
<br> | <br> | ||
To add an icon to the message:- | To add an icon to the message:- | ||
− | *Click the link ''click here to set'' and either scroll down the list to find a suitable icon (some will not be suitable) or simply type "icon stop" in the text box | + | *Click the link ''click here to set'' and either |
+ | **scroll down the list to find a suitable icon (some will not be suitable), or | ||
+ | **simply type "icon stop" in the text box | ||
+ | *Click the '''Tick''' icon.<br> | ||
[[file:IconStop.JPG]] | [[file:IconStop.JPG]] | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | + | <br> | |
+ | The finished '''Message Popup'''. | ||
+ | <br> | ||
<table> | <table> | ||
<tr valign="top"> | <tr valign="top"> |
Revision as of 21:47, 20 May 2018
Contents |
What are Triggers?
Triggers are invisible markers (invisible in Driver Mode but visible in Surveyor Mode) that are placed on a track. They can be programmed to "trigger an event" when a train (any train or a specific train) passes over them in Driver Mode.
The "event" is a message that is transmitted by the trigger to certain Session Rules that have been programmed to "listen" for the message. When one of those listening rules detects the message, it can be forced into action by executing preset instructions.
(left) A Track Trigger in place on a track visible in Surveyor Mode. The "5.00m" is the trigger detection radius |
Adding a Trigger
The Track Trigger is placed on the track using:-
- the Tracks tool, and
- the Trackmark Mode button.
|
Configuring a Trigger
As soon as a new trigger has been placed, its properties window will open on the screen. It will be given a default name and assigned to the currently active layer.
Triggers have a "detection radius" that controls how close a train has to approach to trigger the event. The smaller the radius the closer the train. This radius is set in the Advanced Properties section of the Tools window.
|
Creating a Trigger Event
Trigger events are handled by the Trigger Check Rule which is added to a session in the Session Editor.
- The Trainz Wiki Link Trigger Check Rule contains detailed information on this rule.
|
|
|
This will add the Trigger Check rule to the session.
|
For this example we will leave all settings unchanged and simply identify the trigger to be used.
|
|
- Click the Tick icon on the selection list
- Click the Tick icon Trigger Check properties window.
To test your trigger event you will need to add a rule to the Trigger Check. When you are back in the Session Editor window, click the Add button to add a new rule.
The Message Popup Rule has to be indented so that it becomes a Child of the Trigger Check Rule.
|
|
The Message Popup Rule is now controlled by the Trigger Check Rule but it still has to be configured to show a message.
- With the Message Popup Rule highlighted, click the Edit button.
The finished Message Popup.
Again, click the Tick icon to exit the Message Popup Rule then exit the Session Editor.
Add a consist to your layout a short distance from the trigger (but further away than its radius), save the surveyor session, and then test in Driver Mode.
Another example of using the Trigger Check Rule can be found in the Message Popup Rule Applications link below.