marcoclusius1 Posted April 3, 2013 Report Share Posted April 3, 2013 hello guys,i have the L.A.mod v3 beta now the point, i have 1 police car where i want to have the command alley light on ( traffic light green)is there some script for this ( i know there is special lights, lights on/of, search light)but i want specific for only alley lights, pls help me Quote Link to comment Share on other sites More sharing options...
rettungstier Posted April 4, 2013 Report Share Posted April 4, 2013 oO ? are you serious?why don't you use the script you posted a link to in another topic (http://www.emergency...aseItem&id=1274) ???works the same way, just replace these things:const char DUMMY_HASINTERIORLIGHT[] = "DUMMYINTERIORLIGHT";change toconst char DUMMY_HASALLEYLIGHT[] = "DUMMYALLEYLIGHT";object InteriorLight : CommandScript{InteriorLight()change toobject VCmdAlleyLight : CommandScript{VCmdAlleyLight()Vehicle v(Caller);if (v.HasCommand(DUMMY_HASINTERIORLIGHT)){v.EnableTrafficLight(TLT_NONE);v.RemoveCommand(DUMMY_HASINTERIORLIGHT);} else{v.EnableTrafficLight(TLT_RED);v.AssignCommand(DUMMY_HASINTERIORLIGHT);}change toVehicle v(Caller);if (v.HasCommand(DUMMY_HASALLEYLIGHT)){v.EnableTrafficLight(TLT_NONE);v.RemoveCommand(DUMMY_HASALLEYLIGHT);} else{v.EnableTrafficLight(TLT_GREEN);v.AssignCommand(DUMMY_HASALLEYLIGHT);}object DUMMYINTERIORLIGHT : CommandScript{DUMMYINTERIORLIGHT()change toobject DUMMYALLEYLIGHT : CommandScript{DUMMYALLEYLIGHT()guess that should do!you don't have to rename the dummy or the command name but if you are already using this script for another light with the original script i think you'll need to - as shown above.greetz Quote Link to comment Share on other sites More sharing options...
marcoclusius1 Posted April 4, 2013 Author Report Share Posted April 4, 2013 should i copy the script also and rename it to ilight2 or alley light? Quote Link to comment Share on other sites More sharing options...
cops Posted April 4, 2013 Report Share Posted April 4, 2013 how do you want to name your script ?only you can decide it Quote Link to comment Share on other sites More sharing options...
marcoclusius1 Posted April 4, 2013 Author Report Share Posted April 4, 2013 Tryed that, it works but i can't turn it off...And the script interiorlight doesn't work anymore Quote Link to comment Share on other sites More sharing options...
marcoclusius1 Posted April 4, 2013 Author Report Share Posted April 4, 2013 fixed it already, i've chaned the script search licht, it normaly has 'special licht' now it has trafficlight green only the scripts won't work togeather Quote Link to comment Share on other sites More sharing options...