Hi ! you can do it quite similarly to the flag example available here : https://github.com/zegreatclan/SimH...s-configurations-examples#yellow-flag-exampleI'm trying to get a LED to light up when I turn the traction control on/off in Iracing. I'm using WS2812 LEDs. Any ideas? Thanks!
You will just need a formula adapted to the situation, this one will return 1 when TC level is not 0 otherwise 1 ;
Code:
if([DataCorePlugin.GameData.NewData.TCLevel] > 0 , 1, 0)