<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Class_SceneryWithTrack</id>
	<title>Class SceneryWithTrack - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Class_SceneryWithTrack"/>
	<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;action=history"/>
	<updated>2026-11-05T07:11:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=39056&amp;oldid=prev</id>
		<title>Christopher824: /* FindTriggerContainingNode */ GetId is now obsolete</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=39056&amp;oldid=prev"/>
		<updated>2023-10-10T21:13:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;FindTriggerContainingNode: &lt;/span&gt; GetId is now obsolete&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:13, 10 October 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==FindTriggerContainingNode==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==FindTriggerContainingNode==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{MethodHeader|public native string FindTriggerContainingNode(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;int &lt;/del&gt;node, bool onlyInner)}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{MethodHeader|public native string FindTriggerContainingNode(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GameObjectID &lt;/ins&gt;node, bool onlyInner)}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Parameters&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Parameters&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&#039;&#039;&#039;node&#039;&#039;&#039; = The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GameObject Id &lt;/del&gt;of a vehicle, usually obtained by a call to [[Class GameObject#GetId|GetId ()]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&#039;&#039;&#039;node&#039;&#039;&#039; = The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GameObjectID &lt;/ins&gt;of a vehicle, usually obtained by a call to [[Class GameObject#GetId|GetId ()]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;onlyInner&amp;#039;&amp;#039;&amp;#039; = If true only the inner radius of the trigger will be tested, if false the the trigger name will be returned if the vehicle is within 150 metres of the trigger. &amp;lt;font color=red&amp;gt;which trigger is returned if more than one meets this test?&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;onlyInner&amp;#039;&amp;#039;&amp;#039; = If true only the inner radius of the trigger will be tested, if false the the trigger name will be returned if the vehicle is within 150 metres of the trigger. &amp;lt;font color=red&amp;gt;which trigger is returned if more than one meets this test?&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Returned Value&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Returned Value&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*The name of the scenery trigger found, an empty string otherwise.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*The name of the scenery trigger found, an empty string otherwise.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Syntax&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Syntax&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  string trigger = FindTriggerContainingNode(vehicle.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GetId&lt;/del&gt;(),true);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  string trigger = FindTriggerContainingNode(vehicle.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GetGameObjectID&lt;/ins&gt;(),true);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Notes&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Notes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*This method returns the name of the attached scenery trigger within which the specified vehicle is currently located.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*This method returns the name of the attached scenery trigger within which the specified vehicle is currently located.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*int GetID() is now obsolete&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christopher824</name></author>
	</entry>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=26552&amp;oldid=prev</id>
		<title>Danny252: Change link to library reference, not language reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=26552&amp;oldid=prev"/>
		<updated>2020-12-28T13:41:05Z</updated>

		<summary type="html">&lt;p&gt;Change link to library reference, not language reference&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:41, 28 December 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[TrainzScript &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Language &lt;/del&gt;Reference|API Hierarchy]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[TrainzScript &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Library &lt;/ins&gt;Reference|API Hierarchy]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**[[Class GSObject|GSObject]] *&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**[[Class GSObject|GSObject]] *&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;***[[Class GameObject|GameObject]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;***[[Class GameObject|GameObject]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Danny252</name></author>
	</entry>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=1116&amp;oldid=prev</id>
		<title>Windwalkr at 16:22, 9 February 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=1116&amp;oldid=prev"/>
		<updated>2010-02-09T16:22:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:22, 9 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[TrainzScript &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Langage &lt;/del&gt;Reference|API Hierarchy]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[TrainzScript &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Language &lt;/ins&gt;Reference|API Hierarchy]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**[[Class GSObject|GSObject]] *&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**[[Class GSObject|GSObject]] *&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;***[[Class GameObject|GameObject]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;***[[Class GameObject|GameObject]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Windwalkr</name></author>
	</entry>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=264&amp;oldid=prev</id>
		<title>Windwalkr: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=264&amp;oldid=prev"/>
		<updated>2010-02-03T13:58:39Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:58, 3 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Windwalkr</name></author>
	</entry>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=263&amp;oldid=prev</id>
		<title>Andi06: /* Categories */</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_SceneryWithTrack&amp;diff=263&amp;oldid=prev"/>
		<updated>2008-07-31T00:32:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Categories&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;*[[TrainzScript Langage Reference|API Hierarchy]]&lt;br /&gt;
**[[Class GSObject|GSObject]] *&lt;br /&gt;
***[[Class GameObject|GameObject]]&lt;br /&gt;
****[[Class TrainzGameObject|TrainzGameObject]]&lt;br /&gt;
****[[Class PropertyObject|PropertyObject]] *&lt;br /&gt;
*****[[Class MeshObject|MeshObject]]&lt;br /&gt;
******[[Class MapObject|MapObject]]&lt;br /&gt;
*******SceneryWithTrack&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Parent class for scenery objects that have attached track and attached trigger support, such as industries and crossings.&lt;br /&gt;
*Where triggers are covered within this document these are attached scenery triggers, as defined in the asset&amp;#039;s &amp;#039;&amp;#039;attached-trigger&amp;#039;&amp;#039; table, and should not be confused with Trackside [[Class Trigger|Triggers]].&lt;br /&gt;
*Attached scenery triggers and their attributes (name, radius, track) are defined as part of the asset&amp;#039;s configuration and cannot be altered or moved in Surveyor.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Related Messages==&lt;br /&gt;
*Messages sent to and from SceneryWithTrack objects are listed below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{TableHeader|width=50%|margin=15px}}&lt;br /&gt;
|-&lt;br /&gt;
|bgcolor=&amp;quot;#EEEEEE&amp;quot;|&amp;#039;&amp;#039;&amp;#039;Major&amp;#039;&amp;#039;&amp;#039;||bgcolor=&amp;quot;#EEEEEE&amp;quot;|&amp;#039;&amp;#039;&amp;#039;Minor&amp;#039;&amp;#039;&amp;#039;||bgcolor=&amp;quot;#EEEEEE&amp;quot;|&amp;#039;&amp;#039;&amp;#039;Source&amp;#039;&amp;#039;&amp;#039;||bgcolor=&amp;quot;#EEEEEE&amp;quot; |&amp;#039;&amp;#039;&amp;#039;Destination&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|SceneryTrigger]]||Enter||SceneryWithTrack||Vehicle&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|SceneryTrigger]]||InnerEnter||SceneryWithTrack||Vehicle&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|SceneryTrigger]]||Stopped||SceneryWithTrack||Vehicle&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|SceneryTrigger]]||InnerLeave||SceneryWithTrack||Vehicle&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|SceneryTrigger]]||Leave||SceneryWithTrack||Vehicle&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|Object]]||Enter||Vehicle||SceneryWithTrack&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|Object]]||InnerEnter||Vehicle||SceneryWithTrack&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|Object]]||Stopped||Vehicle||SceneryWithTrack&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|Object]]||InnerLeave||Vehicle||SceneryWithTrack&lt;br /&gt;
|-&lt;br /&gt;
|[[Object Messages|Object]]||Leave||Vehicle||SceneryWithTrack&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
*Embedded [[Class JunctionBase|JunctionBase]] objects issue their own messages in addition to those sent to and from the parent SceneryWithTrack object.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==FindTriggerContainingNode==&lt;br /&gt;
{{MethodHeader|public native string FindTriggerContainingNode(int node, bool onlyInner)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;node&amp;#039;&amp;#039;&amp;#039; = The GameObject Id of a vehicle, usually obtained by a call to [[Class GameObject#GetId|GetId ()]].&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;onlyInner&amp;#039;&amp;#039;&amp;#039; = If true only the inner radius of the trigger will be tested, if false the the trigger name will be returned if the vehicle is within 150 metres of the trigger. &amp;lt;font color=red&amp;gt;which trigger is returned if more than one meets this test?&amp;lt;/font&amp;gt;&lt;br /&gt;
;Returned Value&lt;br /&gt;
*The name of the scenery trigger found, an empty string otherwise.&lt;br /&gt;
;Syntax&lt;br /&gt;
 string trigger = FindTriggerContainingNode(vehicle.GetId(),true);&lt;br /&gt;
;Notes&lt;br /&gt;
*This method returns the name of the attached scenery trigger within which the specified vehicle is currently located.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GetAttachedJunctions==&lt;br /&gt;
{{MethodHeader|public native JunctionBase[ ] GetAttachedJunctions(void)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*None&lt;br /&gt;
;Returned Value&lt;br /&gt;
*An array of any attached [[Class JunctionBase|JunctionBase]] objects included within this object, null if there are no such attachments.&lt;br /&gt;
;Syntax&lt;br /&gt;
 JunctionBase[] nodes = GetAttachedJunctions();&lt;br /&gt;
;Notes&lt;br /&gt;
*JunctionBase arrays are only returned for objects set up as fixed track junctions.&lt;br /&gt;
*The array contains the JunctionBases listed in the &amp;#039;&amp;#039;junction-vertices&amp;#039;&amp;#039; container in &amp;#039;&amp;#039;config.txt&amp;#039;&amp;#039;.&lt;br /&gt;
*The size of the array and the ordering of the individual components will match the number and sequence of the subcontainers within the &amp;#039;&amp;#039;junction-vertices&amp;#039;&amp;#039; table.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GetAttachedTrack==&lt;br /&gt;
{{MethodHeader|public native Track GetAttachedTrack(string trackName)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;trackName&amp;#039;&amp;#039;&amp;#039; = The named track section as defined in the &amp;#039;&amp;#039;attached-track&amp;#039;&amp;#039; table in &amp;#039;&amp;#039;config.txt&amp;#039;&amp;#039;.&lt;br /&gt;
;Returned Value&lt;br /&gt;
*A reference to a [[Class Track|Track]] object if it exists, a script exception will occur otherwise.&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Wouldn&amp;#039;t null be more polite than an exception?&amp;lt;/font&amp;gt;&lt;br /&gt;
;Syntax&lt;br /&gt;
 Track track = GetAttachedTrack(&amp;quot;track01&amp;quot;);&lt;br /&gt;
;Notes&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GetTriggerTrack==&lt;br /&gt;
{{MethodHeader|public native Track GetTriggerTrack(string triggerName)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;triggerName&amp;#039;&amp;#039;&amp;#039; = A trigger name as defined in the &amp;#039;&amp;#039;attached-trigger&amp;#039;&amp;#039; container in &amp;#039;&amp;#039;config.txt&amp;#039;&amp;#039;.&lt;br /&gt;
;Returned Value&lt;br /&gt;
*A reference to a [[Class Track|Track]] object if it exists, a script exception will occur otherwise.&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Wouldn&amp;#039;t null be more polite than an exception?&amp;lt;/font&amp;gt;&lt;br /&gt;
;Syntax&lt;br /&gt;
 Track track = GetTriggerTrack(&amp;quot;trigger01&amp;quot;);&lt;br /&gt;
;Notes&lt;br /&gt;
*The track returned is as sepcified in the &amp;#039;&amp;#039;track&amp;#039;&amp;#039; tag of the &amp;#039;&amp;#039;attached-trigger&amp;#039;&amp;#039; table in &amp;#039;&amp;#039;config.txt&amp;#039;&amp;#039;.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==InnerReEnter==&lt;br /&gt;
{{MethodHeader|public native bool InnerReEnter(int node)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;node&amp;#039;&amp;#039;&amp;#039; = Node Id of a vehicle to be re-entered into inner trigger radius.&lt;br /&gt;
;Returned Value&lt;br /&gt;
*True if the vehicle is within the inner trigger radius and the message has been sent, false otherwise.&lt;br /&gt;
;Syntax&lt;br /&gt;
 InnerReEnter(vehicle.GetId());&lt;br /&gt;
;Notes&lt;br /&gt;
*The effect of this method is to cause a new &amp;#039;&amp;#039;Object,InnerEnter&amp;#039;&amp;#039; message to be sent from the vehicle to the SceneryWithTrack object.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==InnerReEnterTrain==&lt;br /&gt;
{{MethodHeader|public void InnerReEnterTrain(Train train)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;train&amp;#039;&amp;#039;&amp;#039; = A train reference, InnerReEnter will be called on all the vehicles in the train. &lt;br /&gt;
;Returned Value&lt;br /&gt;
*None&lt;br /&gt;
;Syntax&lt;br /&gt;
 InnerReEnterTrain(train);&lt;br /&gt;
;Notes&lt;br /&gt;
*Messages are only issued in respect of vehicles actually within the inner trigger at the time of the call?&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==IsTrainInTriggers==&lt;br /&gt;
{{MethodHeader|public native bool IsTrainInTriggers(Train train, bool onlyInner}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;train&amp;#039;&amp;#039;&amp;#039; = A reference to the train to look for.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;onlyInner&amp;#039;&amp;#039;&amp;#039; = If true only the inner radius of the trigger will be tested, if false the the radius tested will be the default 150 metres.&lt;br /&gt;
;Returned Value&lt;br /&gt;
*True if any part of the specified train is within the trigger radius, false otherwise.&lt;br /&gt;
;Syntax&lt;br /&gt;
 bool trainFound = IsTrainInTriggers(train,true);&lt;br /&gt;
;Notes&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ReEnter==&lt;br /&gt;
{{MethodHeader|public native bool ReEnter(int node)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;node&amp;#039;&amp;#039;&amp;#039; = Node Id of a vehicle to be re-entered into default 150 metre trigger radius.&lt;br /&gt;
;Returned Value&lt;br /&gt;
*True if the vehicle is within the 150 metre trigger radius and the message has been sent, false otherwise.&lt;br /&gt;
;Syntax&lt;br /&gt;
 ReEnter(vehicle.GetId());&lt;br /&gt;
;Notes&lt;br /&gt;
*The effect of this method is to cause a new &amp;#039;&amp;#039;Object,Enter&amp;#039;&amp;#039; message to be sent from the vehicle to the SceneryWithTrack object.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Code Examples==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Related Methods==&lt;br /&gt;
[[Class Industry#HasTrack|Industry.HasTrack()]]&lt;br /&gt;
&lt;br /&gt;
[[Class JunctionBase#GetMapObject|JunctionBase.GetMapObject()]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Categories==&lt;br /&gt;
[[Category:Script Class]]&lt;/div&gt;</summary>
		<author><name>Andi06</name></author>
	</entry>
</feed>