Jump to content
itchboy

Patrolling Vehicles Stoplight Fix

Recommended Posts

While doing work for Montana mod, I accidentally found the fix for patrolling units not obeying stoplights. Due to my current internet situation, I do not have a video demonstration.

The value that made this work is

v.SetTerrain(TERRAIN_TRAFFIC);

And to reset it back to normal:

v.SetTerrain(TERRAIN_CAR);

These values can be implemented to ANY mod.

Here is an example of the code implemented into the LA mod patrol script. This example will only work in an unedited copy of the LA mod. This example will not function with other mods or submods.

  Reveal hidden contents

 

  • Like 3
Link to comment
Share on other sites

  On 8/18/2019 at 3:09 PM, itchboy said:

Can I see the rest of the script?

Expand  

Yep, here it go. I deleted those 3 lines this afternoon, but where in the exact same position as yours.

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 8/18/2019 at 11:23 PM, itchboy said:

Can I see what it looked like when you implemented it?

The error you showed me is unusual. I don't recognize the corrupted symbols after the "TERRAIN_TRAFFIC" line.

Expand  

Well, now it's fixed. I edited the file with wordpad this time and no issues by now, patrol cars respect traffic lights.

Idk if is something related to Notepad++ or I should have copied the code direct from your spoiler the first time, but now it works.

Thank you anyways!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...