Code Help
Moderator: Plugin Moderators
- CommanderABab
- AB
- Reactions:
- Posts: 11086
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Code Help
You dont need quotes around 512 and 1 there. Ok, so you have 1 tiny car within a radius of 512. Might take a while to see it.
- CommanderABab
- AB
- Reactions:
- Posts: 11086
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Code Help
Your rally cars cannot drive on your rally track because you didn't set flags for them. You might add to the car, too.
For bigger cities it might help to add as described here to your building so a valid target building is always found.
Code: Select all
"flag user5": true,
"flag normal": false,
For bigger cities it might help to add
Code: Select all
"car local only":true
- CommanderABab
- AB
- Reactions:
- Posts: 11086
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Code Help
I have a question Lobby. May a building spawn more than one type of car?
Jsonlint says there are duplicate tags when I try, but Theotown doesn't complain. Should I place them in the code like "car": [ 1, 2, 3]?
Jsonlint says there are duplicate tags when I try, but Theotown doesn't complain. Should I place them in the code like "car": [ 1, 2, 3]?
- CommanderABab
- AB
- Reactions:
- Posts: 11086
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Code Help
Ah, I see. They need different flags.
- CommanderABab
- AB
- Reactions:
- Posts: 11086
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Code Help
Let's see. I think an array of four would be sufficient. One type of road on each side of a building = 4.
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Code Help
As former member said, it's not the same thing for operational cars. However, the behavior should be exactly the same when you use the "car"-flags as you try to do. Operational cars also "search" for buildings they drive to randomly then.