Identifing loco within Consist
Hi All
Hope someone maybe able to help!
I have a Carriage LUA script that identifies whether there is a vehicle ahead or behind itself so as to work out if the carriage is coupled or not.
If coupled, then I switch on the Node to make the extended Corridor connection visible - if not coupled then I show the shortened Connector (with the appropriate electrical connections as well)
What I now need is to identify when the carriage is couple to the LOCO so that I show the short Corridor Connection + No electrical connection.
Any ideas how I can tell if the next vehicle is a carriage or loco?? (Steam loco and carriages BTW)
Thanks
Steve (SPRAILWAYS)
Hope someone maybe able to help!
I have a Carriage LUA script that identifies whether there is a vehicle ahead or behind itself so as to work out if the carriage is coupled or not.
If coupled, then I switch on the Node to make the extended Corridor connection visible - if not coupled then I show the shortened Connector (with the appropriate electrical connections as well)
What I now need is to identify when the carriage is couple to the LOCO so that I show the short Corridor Connection + No electrical connection.
Any ideas how I can tell if the next vehicle is a carriage or loco?? (Steam loco and carriages BTW)
Thanks
Steve (SPRAILWAYS)