http://handbuch.eepshopping.de/index.php?title=Structure_Functions&feed=atom&action=history
Structure Functions - Versionsgeschichte
2024-03-29T11:27:44Z
Versionsgeschichte dieser Seite in EEP Handbuch
MediaWiki 1.23.9
http://handbuch.eepshopping.de/index.php?title=Structure_Functions&diff=1775&oldid=prev
Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPStruct…“
2018-09-08T08:41:09Z
<p>Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPStruct…“</p>
<p><b>Neue Seite</b></p><div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetSmoke()</th><br />
<th style="padding: 10px;">EEPStructureSetSmoke("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetSmoke("#1_Lauscha_trainstation", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the smoke (e.g. chimney smoke) of a structure on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is true to turn the smoke on or false to turn it off.</li><br />
<li>Return value is true if the targeted structure exists and has a smoke feature, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetSmoke()</th><br />
<th style="padding: 10px;">EEPStructureGetSmoke("Lua-Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Name = "#1_Lauscha_train station"<br />
<br />
hResult, hData = EEPStructureGetSmoke(Name)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires if the smoke (e.g. chimney smoke) of a structure is currently turned on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the targeted structure exists and has a smoke feature, else false.</li><br />
<li>Second return value is true if the smoke is turned on and false if it is off.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetLight()</th><br />
<th style="padding: 10px;">EEPStructureSetLight("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetLight("#B52_LoveShack", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the lights of a structure on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is true to turn the lights on or false to turn them off.</li><br />
<li>Return value is true if the targeted structure exists and has a light feature, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetLight()</th><br />
<th style="padding: 10px;">EEPStructureGetLight("Lua-Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
myName = "#B52_LoveShack"<br />
<br />
hResult, hData = EEPStructureGetLight(myName)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires if the lights of a structure are currently turned on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the targeted structure exists and has a light feature, else false.</li><br />
<li>Second return value is true if the lights are turned on and false if they are off or in automatic mode.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetFire()</th><br />
<th style="padding: 10px;">EEPStructureSetFire("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetFire("#1_Brandhaus_01_SB1", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the fire feature of a structure on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is true to activate the fire or false to deactivate it.</li><br />
<li>Return value is true if the targeted structure exists and has a fire feature, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetFire()</th><br />
<th style="padding: 10px;">EEPStructureGetFire("Lua-Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Name = "#1_Brandhaus_01_SB1"<br />
<br />
hResult, hData = EEPStructureGetFire(Name)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires if the fire feature of a structure is currently turned on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the targeted structure exists and has a fire feature, else false.</li><br />
<li>Second return value is true if the fire is turned on and false if it is off.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureAnimateAxis()</th><br />
<th style="padding: 10px;">EEPStructureAnimateAxis("Lua-Name","Axis",Position)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureAnimateAxis("#1_Windmill","Rotor", 1000)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Moves the specified axis of the specified structure or track-side object.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>The third argument is the (positive or negative) number of steps the axis shall move. A value of 1000 bzw. -1000 starts an endless motion if the model was built for it (e.g. sails of a windmill). A value of 0 stops any motion.</li><br />
<li>Return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureIsAxisAnimate()</th><br />
<th style="padding: 10px;">EEPStructureIsAxisAnimate("Lua_Name","Achse")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Status = EEPStructureIsAxisAnimate("#1","Bridge") <br />
if Status > 0 then <br />
print( "The turntable is moving." )<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;"> EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;"></td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>First return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
<li><br />
Second return value is:<br />
<ul><br />
<li>0 = the axis is not moving.</li><br />
<li>1 = the axis is moving in an infinite loop.</li><br />
<li>2 = the axis is moving but will come to rest in finite time.</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetAxis()</th><br />
<th style="padding: 10px;">EEPStructureSetAxis("Lua-Name","Axis",Position)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetAxis("#1_Turntable", "Bridge", 50)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Sets the specified axis of the specified structure or track-side object to a new position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>Third argument is the new position of the specified axis.</li><br />
<li>Return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetAxis()</th><br />
<th style="padding: 10px;">EEPStructureGetAxis("Lua-Name","Axis")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, hData = EEPStructureGetAxis("#1_Turntable","Bridge")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the position of the specified axis of the specified structure or track-side object.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>First return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
<li>Second return value is the current position of the specified axis.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetPosition()</th><br />
<th style="padding: 10px;">EEPStructureSetPosition("Lua-Name",PosX,PosY,PosZ)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetPosition("#1_Strawball", 1, 2, 3)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Places the specified structure or track-side object at a new position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the new x position of the structure.</li><br />
<li>Third argument is the new y position of the structure.</li><br />
<li>Fourth argument is the new z position of the structure.</li><br />
<li>Structures cannot be placed outside a layout’s boundaries.</li><br />
<li>Return value is true if the targeted structure exists and the new position is within the layout’s boundaries, else false.</li><br />
<li>Function can also be used for landscape elements because both, structures and landscape elements, share a common set of IDs.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetPosition()</th><br />
<th style="padding: 10px;">EEPStructureGetPosition("Lua_Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Pos_X, Pos_Y, Pos_Z = EEPStructureGetPosition("#1") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the position of a structure or a landscape element.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the method was successfully executed; false otherwise.</li><br />
<li>Second return value is the x position of the structure.</li><br />
<li>Third return value is the y position of the structure.</li><br />
<li>Fourth return value is the z position of the structure.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetRotation()</th><br />
<th style="padding: 10px;">EEPStructureSetRotation("Lua-Name",RotX,RotY,RotZ)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetRotation("#1_Strawball", 0, 0, 25)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Rotates the specified structure or track-side object to a new position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the new x rotation of the structure.</li><br />
<li>Third argument is the new y rotation of the structure.</li><br />
<li>Fourth argument is the new z rotation of the structure.</li><br />
<li>Return value is true if the targeted structure exists, else false.</li><br />
<li>Function can also be used for landscape elements because both, structures and landscape elements, share a common set of IDs.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetModelType()</th><br />
<th style="padding: 10px;">EEPStructureGetModelType("Lua_Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult , Typ = EEPStructureGetModelType( "#1" )<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the model type category of the structure.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the method was successfully executed; false otherwise.</li><br />
<li>Second return value is the category the designer of the model assigned to it:<br />
<ul><br />
<li>16 = Tracks/Track objects</li><br />
<li>17 = Tramtracks/Tramtrack objects</li><br />
<li>18 = Streets/Street objects</li><br />
<li>19 = Other/Other objects</li><br />
<li>22 = Real estate</li><br />
<li>23 = landscape elements/Fauna</li><br />
<li>24 = landscape elements/Flora</li><br />
<li>25 = landscape elements/Terra</li><br />
<li>38 = landscape elements/Instancing</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann