Re: Why does this happen?

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Why does this happen?

#1

Post by CommanderABab »

What's the spawn code?

<Koala was asking why his Mitsubishis just stayed in one place.>
Last edited by CommanderABab on 29 Aug 2018, 05:03, edited 1 time in total.
Reason: Added my recollection of topic start

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Why does this happen?

#2

Post by Lobby »

It probably searches for a new way for a new target...

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Why does this happen?

#3

Post by CommanderABab »

You need another target in the list after it reaches

Code: Select all

"mitsubishi_koala04"
.

Try

Code: Select all

"targets":["$mitsubishi_koala04","$zoneresidential_lvl2"] 

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: ✔️ Why does this happen?

#4

Post by Lobby »

@CommanderABab as far as I know you cannot target zones, but nice idea :bc

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: ✔️ Why does this happen?

#5

Post by CommanderABab »

Code: Select all

"car spawner":[
        {
          "cars":["$ab.hotairballooncar00"],
          "count":2,
          "radius":400,
          "targets":[
             "$watertower00",
             "$gasplant00",
             "$windturbine00",
             "$nuclearplant00",
             "$solarpanels00",
             "$busstop00",
             "$busdepot00",
             "$railstation00",
             "$zoneresidential_lvl2",
             "$zoneresidential"   
          ]
        }
      ],

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: ✔️ Why does this happen?

#6

Post by CommanderABab »

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
       }
       
     ]
    
  }
]
Zip in a minute.
habex.zip
(14.25 KiB) Downloaded 106 times

Post Reply Previous topicNext topic

Return to “Problems”