(WIREMOD) How to make a car controlled by a following robot

Hello, everyone. I will teach you how to make a car that is controlled by a robot, that can follow players, locators, and props.

Firstly, you need to spawn a car. It can be any car, but slow TDM vehicles are recommended (I will use the 1965 Mini Cooper).

Go to the Wiremod tab and find "Target Finder". Make it so it can find only ONE target, and tick "Do not target owner's stuff", if you don't want the car to drive in a circle. Place it on top of the car. Next, find the "Beacon Sensor", which looks like a hula doll. Make sure "local coordinates" are toggled in the options menu. Then, spawn it on top of the CENTER of the car and make sure it faces forward. Right click the Beacon Sensor and right click on the Target Finder to link them.

The next few steps are going to be tricky. Go to "Gates", and go to the Arithmetic tab, where you'll find the Sign gates. Spawn 2 Sign gates somewhere on the car (preferably on top). Wire the outputs of 1 sign gate into the "X" of Beacon Sensor, and wire another sign gate to the "Y" of Beacon Sensor.

Now, find Vehicle Controller in the Wiremod menu, and place it somewhere on the car (preferrably on top). Link it to the car by right-clicking. Wire "Throttle" from the Vehicle Controller to the output of one of the sign gates. Then, wire "Steering" from the Vehicle Controller to the output of another sign gate. Notice that the car turns their wheels by itself. Unless the engine is on, it will not move back and forth.

This is when you get out "Constant Value". Find the Constant Value chip in the Wiremod menu, then set the value to "1" on the Constant Value chip then spawn it on your car. Wire "Engine" from the Vehicle Controller to the constant value chip, which turns the engine on constantly.

If you did this correctly, you should hear an engine start and the car will begin to follow you or other players. Play around with it. The car will not make any sound when it moves, which is perfectly normal.
 
Back
Top Bottom