Jump to content

Herman

Mitglieder
  • Gesamte Inhalte

    1156
  • Benutzer seit

  • Letzter Besuch

Alle erstellten Inhalte von Herman

  1. @HaNNoveraNer Thanks, that's kind. It works fine because - as i did in my attachment saved the loc's name in the signal. Of course, i know that solution. Kind regards, Herman
  2. @HaNNoveraNer Hello, Always thanks for a reply, Ok i did use your suggestions before. I saved ( even in 5 ) the name of the vehicle in a variable from the signal. ( * attachment ) But Conditions to find the loc's name before the signal with something like local vehicles = layout:getVehiclesOn(signal) for _, vehicle in pairs(vehicles) do ... and so on. do not work with vehicles where there are wagons in front of the vehicle. Because the loc itself is not before the signal ? Another solution : put the signal in the beginning of a track, a vehicle that triggers this track will cause the vehicle to stop. Even with wagons in front, that works. The track before that track is stretched as long as the whole train ( wagons + vehicle ) fits on that stretched track. Kind regards, Herman HP V6 Signals V01b.mbp
  3. Sorry, clarification Of course we know the name of the locomotive if hitting the track contact. I use it myself since V5 - see also HP V6 Signals V02 submitted in the catalof. But both questions are related. How can I restart the vehicle in the event "Signal is changed" when i then cannot find wat Locomotive is before the signal. Kind regards, Herman
  4. I started with 3D train Studio in march 2020, and bought V6. Can anybody give some help please. It is quite specific. Relation between the track contact caused by a signal on that track, and the signal itself. In an event "track contact is triggered" how can i find the object name of that corresponding signal ? If so we can use the variables of that signal. A vehicle ( = wagons + locomotive ) hits the track contact of a signal. The wagons are in front of the Locomotive. How can I find the name of the object of the hitting Locomotive ? I tried ( even in version 5 ) local vehicles = layout:getVehiclesOn(signal) , but in this case it is not working, beause the locomotive is not on that Signal's trackcontact. Thanks if someone can give an answer. Kind Regards Herman
×
×
  • Neu erstellen...