Airikir Posted July 31, 2020 Report Share Posted July 31, 2020 I am playing LA Mod and it looks like the police cars on the patrol paths do not stop at red light. They only stop if there is a car in front of them. Is it hardcoded in EM4 that only civilian vehicles follows the traffic light rules? Quote Link to comment Share on other sites More sharing options...
The Loot Posted August 1, 2020 Report Share Posted August 1, 2020 I believe @itchboycame up with a method to try. Use this line in the patrol script commands: v.SetTerrain(TERRAIN_TRAFFIC); I have it before this line PathList p1l("patrolpath01"); And then in the DummyPatrol command, add this line to revert when cancelling the command. v.SetTerrain(TERRAIN_CAR); Never tested it myself, just added it to the files (haven't launched this game in years). Quote Link to comment Share on other sites More sharing options...
Airikir Posted August 2, 2020 Author Report Share Posted August 2, 2020 Ok great thanks, would have never thought of that. Will check if it works and come back to you. Quote Link to comment Share on other sites More sharing options...
Airikir Posted August 2, 2020 Author Report Share Posted August 2, 2020 It works perfect! Quote Link to comment Share on other sites More sharing options...
TheManGoesWild Posted September 12, 2020 Report Share Posted September 12, 2020 Would anyone know how I could use this in the ToFireStation script so vehicles return like real life stopping at lights etc? instead of driving straight through red lights Quote Link to comment Share on other sites More sharing options...
itchboy Posted September 12, 2020 Report Share Posted September 12, 2020 Hello. I'm the guy who made the stoplight fix for patrol and sadly, the fix doesnt work for the fire station script. The code I made only works because of a loophole in the Em4 path logic. The return to base command cannot be exploited with that loophole. Vehicles are unfortunately hardcoded to ignore lights if they aren't on a path like in the patrol script. Quote Link to comment Share on other sites More sharing options...