[Resolved] How can cars appear in buildings?

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Maroy_of_tt323
Villager
Reactions:
Posts: 20
Joined: Sun Oct 20, 2019 5:28
Plugins: Show
Phone model: ELE-AL00

Platform

[Resolved] How can cars appear in buildings?

#1

Post by Maroy_of_tt323 » Mon Jan 13, 2020 7:20

Screenshot_20200113_131524_com.estrongs.android.pop.jpg
I want the car to appear near the building.But I didn't find the right code.
Can anyone help me?
I'm a two-year player who's been in China :android :windows :D

User avatar
CommanderABab
AB
Reactions:
Posts: 8016
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How can cars appear in buildings?

#2

Post by CommanderABab » Mon Jan 13, 2020 22:29

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!

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": {}

			}
		}
	},
If you just want an already defined vehicle to appear around your building, then use:

. :)

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.

		}]
ps1vqrem<<ps1vqrem ps1vqrem ps1vqrem ps1vqrem ps1vqrem

User avatar
CommanderABab
AB
Reactions:
Posts: 8016
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How can cars appear in buildings?

#3

Post by CommanderABab » Mon Jan 13, 2020 22:48

viewtopic.php?p=22167#p22167

This is the link to the main topic about using cars.
ps1vqrem<<ps1vqrem ps1vqrem ps1vqrem ps1vqrem ps1vqrem

User avatar
Maroy_of_tt323
Villager
Reactions:
Posts: 20
Joined: Sun Oct 20, 2019 5:28
Plugins: Show
Phone model: ELE-AL00

Platform

Re: How can cars appear in buildings?

#4

Post by Maroy_of_tt323 » Tue Jan 14, 2020 7:23

@CommanderABab
Thank you
I'm a two-year player who's been in China :android :windows :D

Post Reply Previous topicNext topic

Return to “Problems”

Who is online

Users browsing this forum: No registered users and 4 guests