Guest Posted February 18, 2015 Report Share Posted February 18, 2015 Is it possible to have the standard light type disabled by a script? I tried m.EnableStandardLights(false); But I got all kinds of errors. Essentially I want it so when the game starts and the vehicles are in station, all of their lights are off(Blue, Headlight, and Standard). So far I have the blue light and headlights off but the standard type lights are giving me issues. Quote Link to comment Share on other sites More sharing options...
itchboy Posted February 18, 2015 Report Share Posted February 18, 2015 Standard lights don't appear to be toggleable by script. I only found functions for headlights, bluelights, turn signals and stop lights. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2015 Report Share Posted February 18, 2015 Bummer.....thanks though. Quote Link to comment Share on other sites More sharing options...
Dyson Posted February 18, 2015 Report Share Posted February 18, 2015 What lights on an emergency vehicle would be standard? They'd surely either be headlights break lights or emergency lights so blue lights? Quote Link to comment Share on other sites More sharing options...
itchboy Posted February 18, 2015 Report Share Posted February 18, 2015 What lights on an emergency vehicle would be standard? They'd surely either be headlights break lights or emergency lights so blue lights?He means the lights set to Standard in the editor. Not common emergency vehicle lights. Quote Link to comment Share on other sites More sharing options...
Dyson Posted February 18, 2015 Report Share Posted February 18, 2015 Yeah I get what he means but I mean for what purpose would you want to hide standard lights? I'd recommend just changing them all to special and controlling them with a script Quote Link to comment Share on other sites More sharing options...
itchboy Posted February 18, 2015 Report Share Posted February 18, 2015 He probably wants to have both special and directional lights, but can't have them both controlled by script because of the limitation. Quote Link to comment Share on other sites More sharing options...
Dyson Posted February 18, 2015 Report Share Posted February 18, 2015 Try setting the extra lights as traffic lights? They can be controlled by scripts Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2015 Report Share Posted February 18, 2015 Hopefully I can clear up the confusion. I will also be able to provide a picture later if needed. - Basically, when the game loads and the vehicles spawn in the station, all of their lights, beside the blue lights are active. So the headlights and the running lights(Yellow lights on top of cab). - I was able to incorporate a line of script that disabled the headlight type upon the loading of the game. - The last piece to the puzzle is disabling the yellow running lights upon the start. In the editor, these lights are set to standard, then set to "Only on at night". - Hopefully this clarifies exactly what I am trying to doing. - I did do some playing around in the editor and the standard light type is the only type that allows you to use the "Only on at night function". Quote Link to comment Share on other sites More sharing options...
itchboy Posted February 18, 2015 Report Share Posted February 18, 2015 The only way around this is to set the running lights as headlights. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2015 Report Share Posted February 18, 2015 The only way around this is to set the running lights as headlights.Guess I will have to try that and see if that works Quote Link to comment Share on other sites More sharing options...
itchboy Posted February 18, 2015 Report Share Posted February 18, 2015 A bit of context (and an excuse to show off some of my vehicles) The running lights on that LAFD Ambulance are in the headlight group so that I can disable them at startup. This is something I notice with your lighting that the running lights are classed as standard. Not saying theres anything wrong with it. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2015 Report Share Posted February 18, 2015 Yeah I always did them like that...I didn't realize it would work the same that way...thanks again Itchboy Quote Link to comment Share on other sites More sharing options...