Jump to content

Vehicle leaves a tract


Empfohlene Beiträge

Just now, georgeb said:

As a unit leaves a track I wish to set the vehicle speed to 95    How do I do this?

create an event that uses the Vehicle leaves a track event and have it set the speed to 95

speed.thumb.jpg.7306e94464f761079cc478362d270dc1.jpg

This is generic using any vehicle, but a specific track/   It can also be just one vehicle,

Link zu diesem Kommentar
Auf anderen Seiten teilen

Close, but no cigar, @Curt84328

You cannot assign the vehicle on track 55200 a new speed, when the vehicle has just vacated the track.
Instead, use "trigger" and then "vehicle" as the target vehicle and "All" for the track, please

1167147477_leavetrackevent.thumb.jpg.e553b198af6f285d7083795d325c71e1.jpg

484945284_leavetracktrigger.jpg.459087314748649454a11182018216f2.jpg

Greets
Goetz

Bearbeitet von Goetz
Bild hinzugefügt
Link zu diesem Kommentar
Auf anderen Seiten teilen

Hello George.

vor 57 Minuten schrieb georgeb:

I need it to only function in one direction.

then don't use "leaves track" as the triggering event.

Instead,

  1. place a contact at the spot where you want to change the speed,
  2. disable the contact for one of the two directions and 
  3. use "leaves contact" as the triggering event.

That's why contacts were introduced. Because they are a better means to control such situations.

Kind regards
Goetz

Link zu diesem Kommentar
Auf anderen Seiten teilen

Track contacts are great! You can use the same event in multiple places, if you use track contacts. Put the same keyword on each contact, and for this event, a number Variable that holds the speed to set to. Then you use the Vehicle leaves a contact with keyword option. In the set Vehicle speed action specify an extended variable as the speed, with the object set to trigger track contact and the variable as the one holding the speed.

I'm on my phone right now and can't show examples, but that means you can have fun working it out, right?

If you get stuck just ask.

Your homework is towork out how to set a different speed for each different loco! ;-D

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...