simonjackson1964 Posted August 24, 2023 Posted August 24, 2023 (edited) 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? Edited August 24, 2023 by simonjackson1964 typo
Goetz Posted August 24, 2023 Posted August 24, 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 Posted August 24, 2023 Author Posted August 24, 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 Posted August 24, 2023 Author Posted August 24, 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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now