Hi, I posted this in general/troubleshooting before discovering the programming section of the forum, hopefully I'll get some more detail in here. I'd like to change the turn signal code so that instead of "toggling on/off" on a keypress, it goes on when keydown and off when keyup. I've searched around on the drive and found a function in the LUA folder called "toggle_left_signal" but can't find the code the calls this function. I'm completely new to Beam , but have lots of experience coding in c/python/java . I've got the parking brake wired up to a micro switch, and that works exactly the way I'd expect, when the switch is closed , parking brake =on, as soon as the switch is open, the parking brake is off .... I just need to make the turn signals behave the same way, can't be that hard , can it ? I found these values in another thread:- electrics.values.signal_L - Is left signal active and pulsed on? electrics.values.signal_R - Is right signal active and pulsed on? electrics.values.signal_left_input - Is left signal active, regardless of pulse? electrics.values.signal_right_input - is right signal active, regardless of pulse? I could go hunting around to see where these are used, but then I figured if there's a game update I'd probably lose any changes made ? Any docs on how the code hangs together and how to make changes permanent would be gratefully received,
What you could do, is create an additional action map with additional controls for your hold-to-signal turn signals and link either the onChange or the onDown and onUp events and use the public interface of electrics to toggle the signals accordingly (toggle_left_signal() and toggle_right_signal()). If you need a sample I could put something together for you quickly. This will not break on a game update.