Cars
Moderator: Plugin Moderators
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Cars
My plugins spawn cars just fine. Keep traffic set at 2x or less in the settings. Give the cars targets to go to and a fairly large radius so that they have a chance of finding targets.
- Bearbear76
- Former Bearbear65
- Reactions:
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Cars
From beta 1.4.84 you can use:
This allows you to shift/move cars by adjusting it's height.
By changing the value you can change the height of the specific frame.
The numbers indicate the frames in this order: By writing the following you will adjust the 1st and 3rd frame by +1.
Correct me if I'm wrong with any of this information!
Code: Select all
"v2":[0,0,0,0]
By changing the value you can change the height of the specific frame.
The numbers indicate the frames in this order: By writing the following you will adjust the 1st and 3rd frame by +1.
Code: Select all
"v2":[1,0,1,0]
- Bearbear76
- Former Bearbear65
- Reactions:
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Cars
Couldn't find it in the world texture
But here
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Cars, did you know? Designating level in car spawner.
Code: Select all
"car spawner":[
{
"cars":["$bigcarplugin63"],
"count":1000,
"radius":3000,
"level":-1,
"targets":[
"$busdepot00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$bigpark00" ,
"$easteregg00"
]
},
{
"cars":["$bigcarplugin63"],
"count":1000,
"radius":3000,
"level":0,
"targets":[
"$busdepot00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$bigpark00" ,
"$easteregg00"
]
},
{
"cars":["$bigcarplugin63"],
"count":1000,
"radius":3000,
"level":1,
"targets":[
"$busdepot00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$bigpark00" ,
"$easteregg00"
]
},
{
"cars":["$bigcarplugin63"],
"count":1000,
"radius":3000,
"level":2,
"targets":[
"$busdepot00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$bigpark00" ,
"$easteregg00"
]
},
{
"cars":["$bigcarplugin63"],
"count":1000,
"radius":3000,
"level":3,
"targets":[
"$busdepot00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$bigpark00" ,
"$easteregg00"
]
},
{
"cars":["$bigcarplugin63"],
"count":1000,
"radius":3000,
"level":4,
"targets":[
"$busdepot00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$easteregg00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$bigpark00" ,
"$easteregg00"
]
},
{
"cars":["$bigcarplugin63"],
"count":100,
"radius":300,
"level":1
}
],
So, if car spawner designates level 3 for a car(s), then that/those car(s) you would spawn directly to a level 3 bridge next to the building.
I think default ground level would be 0.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Cars
Your .json with commas expanded to commas and linefeed:
Should be:
I redacted multiple uses of the same .png in the frames statements for the car, but that wasn't causing your problem. The json being an array [] of objects {}, didn't start with the initial [, which was later in the file. I moved it to the beginning.
Code: Select all
{ "id":"milkcar.28eu9jd",
"type":"car",
"frames":[ {"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4} ,
{"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4},
{"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4} ],
"v2":true,
"capacity":1,
"flag normal":false,
"flag user2":true },
[ { "id":"milfarm929jd",
"type":"industrial",
"workers":190,
"author":"Lancaster Kingdom",
"width":1,
"height":1,
"frames":[{"bmp":"milkfarm.png"}],
"smoke":[{"id":"$smoke07",
"x":13,
"y":-14}],
"level":3,
"car spawner":[ { "cars":["milkcar.28eu9jd"],
"radius":100,
"count":70 } ] } ]
Code: Select all
[{ "id":"milkcar.28eu9jd",
"type":"car",
"frames":[ {"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4} ],
"v2":true,
"capacity":1,
"flag normal":false,
"flag user2":true },
{ "id":"milfarm929jd",
"type":"industrial",
"workers":190,
"author":"Lancaster Kingdom",
"width":1,
"height":1,
"frames":[{"bmp":"milkfarm.png"}],
"smoke":[{"id":"$smoke07",
"x":13,
"y":-14}],
"level":3,
"car spawner":[ { "cars":["milkcar.28eu9jd"],
"radius":100,
"count":70 } ] } ]
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 2220
- Joined: 07 Jul 2016, 22:50
- Location: 'Merica
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Cars
Is there a template for emergency vehicles, like SWAT vans, to be specific?Lobby wrote: ↑26 Jan 2018, 01:512. You have to add this into your bus definition:The bus will then be added to the variants of busses.Code: Select all
"template":"$template_bus00"
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 2220
- Joined: 07 Jul 2016, 22:50
- Location: 'Merica
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Cars
I took a look at the SWAT van's definition, and I didn't find anything out of the ordinary that seemed to give it the functionality I wanted. Are the emergency vehicles hard-coded?