simonjackson1964 Geschrieben 24. August 2023 Geschrieben 24. August 2023 (bearbeitet) A train of hopper waggons comes up a slope, moving slowly. As it reaches the top it passes across a bridge with a receiving bin underneath. The locomotive moves on, and the first waggon comes onto the bridge. As soon as it is fully on, a mechanism opens the dump chutes on the waggon and the content pours out into the hopper. By the time the waggon is about to exit the bridge it is empty. The mechanism closes the chutes and as the train continues to move the waggon is replaced by the one behind it. So I have a "waterfall" particle effect attached to each chute of the waggon. There are ten waggons in the train. I could do this with ten track contacts, each of which holds a list of particle effect objects to be activated, and set a delay to deactivate them, but it feels clumsy to have the locomotive trigger the same event ten times. What I would prefer would be for the waggon itself to trigger the event when it is fully over the receiving hopper, have the list of P.E.s on the waggon, and save ten extra objects on the layout (because the event could be triggered by the waggon leaving the track before). But I can't see a way to access the individual waggons within a train in that way. Is there a way to achieve this, or will I just have to use ten track contacts? Bearbeitet 24. August 2023 von simonjackson1964 typo
Goetz Geschrieben 24. August 2023 Geschrieben 24. August 2023 vor 18 Minuten schrieb simonjackson1964: Is there a way to achieve this, or will I just have to use ten track contacts? There's no way for a track contact to sense the change from one vehicle of your consist to the next. The entire consist is seen as one large object with one beginning and one end. The technical reason behind this is in how train consists are formed. An alternative method in addition to the one you suggested might be to set up a cycle and inquire in short intervals which vehicle sits on the contact. That inquiry will give you the individual object. But the method is "kinda clumsy" too and probably more strenuous on your PC than your alternative.
simonjackson1964 Geschrieben 24. August 2023 Autor Geschrieben 24. August 2023 Fair enough. Thanks as always! I've got it working with a single track contact and a single wagon with four chutes, now to copy everything 9 times and see if it works. Going to back up the layout first!, just in case!
simonjackson1964 Geschrieben 24. August 2023 Autor Geschrieben 24. August 2023 There's probably a way to do it using the iteration "for all vehicles in a train", but I suspect that would require 10 calls to a user-defined event and some very careful timing to get the delay right for each wagon! The contacts are easier!
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren
Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen.
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde dich hier an.
Jetzt anmelden