Blockland Forums > Suggestions & Requests
Bots that drive around in your city.
Demian:
--- Quote from: Thé Lord Tony on March 14, 2013, 06:04:36 AM ---Well how can you make a bot mount onto a vehicle and force it to run on a specific path?
--- End quote ---
Well I would imagine you spawn the bot above the vehicle and decollision the bot spawn to mount it. Then I would put events that tell the bot where to move in the bot spawn that are activated once the bot spawns.
fawkes..:
--- Quote from: Thé Lord Tony on March 14, 2013, 06:04:36 AM ---Well how can you make a bot mount onto a vehicle and force it to run on a specific path?
--- End quote ---
On the bot hole do this event: onBotSpawn Bot GoToBrick 'Car'
On the 'car' brick which is a vehicle spawner go: onBotReachBrick Bot GoToBrick 'test'
On the 'test' brick set it to go to another brick, then after however many more bricks you want, loop it back to the first 'test' and it will drive back to the start where it will repeat the circuit! c:
They're not brilliant drivers and take corners pretty widely but it works.
Cubelands:
--- Quote from: kiwibear on March 12, 2013, 12:16:32 AM ---I've been trying to make a highway with bots driving down it, and they refuse to drive in a straight line between two perfectly aligned points, they always just kinda float off to one side :s
--- End quote ---
--- Quote from: Rotondo on March 12, 2013, 12:47:24 AM ---Make a few more waypoints closer together. When in a vehicle bots think of waypoints as more of a general guideline.
I was able to get bots to navigate the hydro plant speedkart map as a test, so a straight line should be possible.
--- End quote ---
--- Quote from: Barnabas on March 13, 2013, 12:59:10 PM ---I managed to get a bot drive around a block. It was fun, but they surely have a lead foot. An event would be nice later on that makes a bot slow down. Or maybe I just have to tinker with the bot events more.
--- End quote ---
--- Quote from: Rotondo on March 13, 2013, 01:11:39 PM ---setRunSpeed will alter their speed, playGesture jump will make them brake.
--- End quote ---
Thé Lord Tony:
--- Quote from: fawkes.. on March 14, 2013, 06:26:17 AM ---On the bot hole do this event: onBotSpawn Bot GoToBrick 'Car'
On the 'car' brick which is a vehicle spawner go: onBotReachBrick Bot GoToBrick 'test'
On the 'test' brick set it to go to another brick, then after however many more bricks you want, loop it back to the first 'test' and it will drive back to the start where it will repeat the circuit! c:
They're not brilliant drivers and take corners pretty widely but it works.
--- End quote ---
Might be better to just make a bot vehicle with a modeled minifig inside it that appears to look like it's driving the vehicle.
fawkes..:
--- Quote from: Thé Lord Tony on March 14, 2013, 06:47:40 AM ---Might be better to just make a bot vehicle with a modeled minifig inside it that appears to look like it's driving the vehicle.
--- End quote ---
Adding in more waypoints makes them take corners better, you can also make them slow down to go round one tighter, look at what Cubelands posted.