Chacal wrote:So how do you tell the wagon about the key press? Is there some lua code sending messages like the code I posted for the Russell snow plow?
You have the same control container in the engine and the wagon and where it says apply to consist, you put true. Here is one of the control container entries:
<cControlContainerBlueprint-cControlValue d:id="14959648">
<ControlName d:type="cDeltaString">RightDoorOpen</ControlName>
<DefaultValue d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</DefaultValue>
<MinimumValue d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</MinimumValue>
<MaximumValue d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</MaximumValue>
<BriefDescription d:type="cDeltaString">Open doors on right side</BriefDescription>
<DetailedDescription d:type="cDeltaString">Open doors on right side</DetailedDescription>
<ApplyToConsist d:type="cDeltaString">
eTrue</ApplyToConsist>
<InterfaceElements>
<cControlContainerBlueprint-cExteriorAnimation d:id="14998384">
<ElementName d:type="cDeltaString">RightDoor</ElementName>
<DifficultyType d:type="cDeltaString">Expert</DifficultyType>
<AnimationID d:type="cDeltaString">RightDoorOpen</AnimationID>
<AnimStyle d:type="cDeltaString">Once</AnimStyle>
</cControlContainerBlueprint-cExteriorAnimation>
</InterfaceElements>
</cControlContainerBlueprint-cControlValue>