This tutorial is a work-in-progress.
You will need a PC copy of The Simpsons: Hit & Run as well as the following tools to accomplish the steps in this tutorial:
- Lucas' Simpsons Hit & Run Mod Launcher
- Lucas' Simpsons Hit & Run Model Builder
- SketchUp Make 2017
- Knowledge of how to use SketchUp in general will help as these tutorials will assume you're already at least a bit familiar with the software.
- An advanced Text Editor, we recommend Notepad++ or Visual Studio Code.
- The map created in Adding Roads
Step 1: Drawing fences
Fence Collision is pretty simple to add as it's just a series of lines. However, they can only be collided with on one side so the direction you draw the lines and the tag you use matters.
[FenceCW]: The fences will face outwards when drawn in a clockwise motion.
[FenceCCW]: The fences will face inwards when drawn in a clockwise motion.
To start, you'll want to focus the
Terra group that your roads are in and draw 4 lines going around the bounds of the map. Make sure to go in the same direction with all of them!
If you drew the lines in such a way that a face was created between them (which is likely since the map is a flat square), you will want to delete that face.
Once you've done that, you should select the 4 lines and group them together.
Assuming you drew the lines in the same direction as above (clockwise), you will want to tag this group
[FenceCCW] to make them face inwards towards the playable area.
Step 2: Build and check it out ingame
There's no new rules to add for the fences so you're actually already done!
Now it's time to run
Build.bat to see if it works ingame.
If you've done everything right, the map should successfully build and the edges should now effectively be invisible solid walls:
If the collision is backwards from what you'd expect, try swapping out the
[FenceCCW] tag for
[FenceCW] to flip it around.
That's it for this tutorial. You're now ready to move on to the next one.