Page 1 of 1

[Commercial]Ups

Posted: 07 Nov 2017, 18:20
by Borbor

Re: [Commercial]Ups

Posted: 08 Nov 2017, 04:04
by -LeoLeo-
Can the UPS truck do left turns when driving out the right side??... XD

Re: [Commercial]Ups

Posted: 08 Nov 2017, 05:48
by Borbor
I fixed the error

Re: [Commercial]Ups

Posted: 08 Nov 2017, 06:00
by -LeoLeo-
Borbor wrote:
08 Nov 2017, 05:48
I fixed the error
It's not the error, It's a real american UPS driver policy! I'm just asking for fun!

Re: [Commercial]Ups

Posted: 08 Nov 2017, 08:02
by CommanderABab
The policy would be maximize right turns when driving on the right and left turns in countries driving on the left. Plugin vehicles are not able to control the pathfinding algorithm.

Re: [Commercial]Ups

Posted: 08 Nov 2017, 08:58
by CommanderABab
If the plugin car had a list of targets and the player built the targets correctly, this could be done.

Re: [Commercial]Ups

Posted: 08 Nov 2017, 20:47
by Borbor
Wow ! I did not understand anything.

Re: [Commercial]Ups

Posted: 08 Nov 2017, 22:18
by CommanderABab

Code: Select all

"car spawner":[
        {
          "cars":["$ab.hotairballooncar00"],
          "count":2000,
          "radius":400,
          "targets":[
             "$watertower00",
             "$gasplant00",
             "$windturbine00",
             "$nuclearplant00",
             "$solarpanels00",
             "$busstop00",
             "$busdepot00",
             "$railstation00"     
          ]
        }
      ]
This is the car spawner for my hot air balloons. If the city has all these buildings, the cars (balloons) spawned from the hot air balloon school will try to visit each of these in order if they are reachable. So, if these buildings were placed in a circle in this order around the school, they (the balloons) would never make a left turn. Assuming right hand drive roads, where left turns always have to wait for traffic to clear or for traffic lights to allow them through, it is more efficient to not make left turns if possible.