Hi, is there any function (lua) that would check "state / health"? vehicle parts? I would like to create an additional control light that would show that one of our lamps is broken. Below is a photo of such an example control light (Ford galaxy mk1)
Adding a "check engine" is not difficult. I mean, if we break the headlamp, it will show a warning light. I need help with the function in lua.
Just check if any beam in the lamp's deformgroup is deformed (idk how to do it but should be possible), that will mean that the lamp is broken