What's the spawn code?
<Koala was asking why his Mitsubishis just stayed in one place.>
Re: Why does this happen?
Moderator: Plugin Moderators
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Why does this happen?
Last edited by CommanderABab on 29 Aug 2018, 05:03, edited 1 time in total.
Reason: Added my recollection of topic start
Reason: Added my recollection of topic start
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Why does this happen?
You need another target in the list after it reaches .
Try
Code: Select all
"mitsubishi_koala04"
Try
Code: Select all
"targets":["$mitsubishi_koala04","$zoneresidential_lvl2"]
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: ✔️ Why does this happen?
@CommanderABab as far as I know you cannot target zones, but nice idea
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: ✔️ Why does this happen?
Code: Select all
"car spawner":[
{
"cars":["$ab.hotairballooncar00"],
"count":2,
"radius":400,
"targets":[
"$watertower00",
"$gasplant00",
"$windturbine00",
"$nuclearplant00",
"$solarpanels00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$zoneresidential_lvl2",
"$zoneresidential"
]
}
],
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: ✔️ Why does this happen?
Code: Select all
[
{
"id":"$ab.hotairballooncar00",
"type":"car",
"frames":[
{"bmp":"balloonup.png","target w":32,"target h":256},
{"bmp":"balloonup.png","target w":32,"target h":256},
{"bmp":"balloonup.png","target w":32,"target h":256},
{"bmp":"balloonup.png","target w":32,"target h":256}
],
"v2":true,
"speed":0.95,
"capacity":6,
"flag normal":true,
"flag military":true,
"flag pedestrian":true,
"flag tram":true,
"flag airport":true,
"flag user0":true,
"flag user1":true,
"flag user2":true,
"flag user3":true,
"flag user4":true,
"flag user5":true,
"flag user6":true,
"flag user7":true,
"flag user8":true,
"flag user9":true
},
{
"active": true,
"id": "$ab.comhab11.ex",
"type": "decoration",
"hidden":false,
"needs road": true,
"author": "CommanderABab",
"title": "Hot Air Balloon Rides",
"text":"for your viewing pleasure.",
"width": 1,
"height": 1,
"draw ground": true,
"rotation aware": false,
"auto build": true,
"build time":0,
"influence sport": 40,
"spawn":
{
"p":0.005,
"height":1000,
"radius":600
},
"price" : 10000,
"monthly price": 100,
"frames": [
{
"bmp":"balloonup.png","target w":32,"target h":256
}],
"preview frames":[{"bmp":"orangeball.png"}],
"power": 100,
"water": 0,
"max count": 2000,
"level": 2,
"car spawner":[
{
"cars":["$ab.hotairballooncar00"],
"count":2,
"radius":4000,
"targets":[
"$watertower00",
"$gasplant00",
"$windturbine00",
"$nuclearplant00",
"$solarpanels00",
"$busstop00",
"$busdepot00",
"$railstation00",
"$zoneresidential_lvl2",
"$zoneresidential"
]
}
],
"fun":[
{
"condition":
{
"type":"and","inner":[
{"type": "date","frame":3590, "min": 3588,"max":3589 },
{"type":"nearby","min":1,"max":8,"inner":[{"type":"road"}],"invert":true}
]
},
"actions":[
{"type":"remove"}
],
"p":1
}
]
}
]