So I am experimenting with the Wentward DT40L and its lua. I have added point lights to the roof to emulate lights that turn on when the headlights do, but I also added another light for the doors when they open. Is there any way I can enable the lights to turn on when the doors opened? Thanks in advance!
i did it without lua just created a connection to the door open/close triggers and a event which switches an electric value for a glowmap i've marked the needed lines on the left --- Post updated --- via lua i would use the doorCoupler states to enable / disable the lights
Its not using triggers though, its an input map for the doors, that I would like to use to turn on the pointlights defined in the roofs .jbeam. I'll send a screenshot of the roof lights jbeam when I get onto my PC. Heres my .jbeam code for the lights
I solved the issue. All I had to do was assign the function from when the headlights come on, to when the doors are opened. I found the function in the input maps file, its called 'dooropen'