[Resolved] How can cars appear in buildings?
Moderators: Scenario Moderators, Plugin Moderators
- Maroy_of_tt323
- Townsman
- Posts: 47
- Joined: 20 Oct 2019, 05:28
- Location: Tangshan, Hebei, China
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
[Resolved] How can cars appear in buildings?
Can anyone help me?
- CommanderABab
- AB
- Posts: 11240
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: How can cars appear in buildings?
These are the things that may be used to make your own vehicle if desired.
It can be a lot of work to make them look nice!
If you just want an already defined vehicle to appear around your building, then use:
.
It can be a lot of work to make them look nice!
Code: Select all
{//optional , this one lights the entire vehicle at night. It is quite small.
"id": "$mycaranim",
"type": "animation",
"light":true,
"light switching":false,
"frames": [{
"bmp": "mycaranim.png",
"w": 13,
"h": 15,
"target w":6,
"target h":6,
"count": 4
}]
},
{
"id": "$mycar",
"type": "car",
"frames": [{//see documentation for vehicle graphics examples
"bmp": "mycar.png",
"w": 13,
"h": 15,
"target w":6,
"target h":6,
"count": 4
}],
"animation": [{ //optional
"id": "$mycaranim",
"pos": [0, 0, 0, 0, 0, 0, 0, 0] //array of xyxyxyxy positions for animation to appear on vehicle
}
],
"v2": [2, 2, 2, 2], //unsure, I think required by an update
"capacity": 11,
"speed": 1,
"flag normal": true, // flags of roads vehicle can use
"flag user2": true,
"meta": { //optional, special services vehicle may provide
"tags": {
"fire brigade": {},
"garbage": {}
}
}
},
.

Code: Select all
"car spawner": [{
"cars": ["$carid1" //,"$carid2" etc
],
"flags": ["fire brigade"], //if a vehicle has a special use then use this. Otherwise no.
"targets":["buildingid","orbuildingtype"], //array of building ids for vehicle to attempt to visit. (Can cause traffic problems)
"count": 2,
"radius": 4000 //this would go over the whole map. Use 5,10 or 20 to keep them near the building.
}]
- CommanderABab
- AB
- Posts: 11240
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- Maroy_of_tt323
- Townsman
- Posts: 47
- Joined: 20 Oct 2019, 05:28
- Location: Tangshan, Hebei, China
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CERRERA
- Townsman
- Posts: 48
- Joined: 25 Jan 2020, 06:19
- Location: Philippines
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: [Resolved] How can cars appear in buildings?
Hello
How can I add the type of building as a target
this one dosen't work
How can I add the type of building as a target
this one dosen't work