Jump to content

Empfohlene Beiträge

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 von simonjackson1964
typo
Link zu diesem Kommentar
Auf anderen Seiten teilen

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.

Link zu diesem Kommentar
Auf anderen Seiten teilen

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 erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...