@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