hb.resing Posted October 28, 2022 Share Posted October 28, 2022 I can change the train destination indicator (online catalog -> Browse-> Infrastructure -> rail traffic ->platforms) in the events when a trackcontact is triggerd with the next LUA lines: local t= $("Eindhoven destination indicator") t.labels["Zuglauf"].text = "geleen" t.labels["Zielbahnhof"].text = "Sittard" t.labels["Abfahrtszeit"].text =layout.time Updating the scoreboard(modular) in the same map gives an error "attempt to index a nil value (field 'Zuglauf')" local t4= $("Eindhoven(modular)2") !! t4.labels["Zuglauf"].text = "geleen" setting the properties for both objects in the layout look so much simular , but in the the eventscreen i cann't access the fields of the scoreboard(modular) somebody who nows the right syntaxis?? Thanks Heinrich Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now