## Enabling and Disabling Your RCI Spawning

Learn here how to create and use plugins.

Moderator: Plugin Moderators

KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2069
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Contact:

### Enabling and Disabling Your RCI Spawning

In this post I'll be explaining how to enable or disable the spawning of your RCI plug-ins that have this code. The reason why it's useful is because it can be changed in-game. Unfortunately, it won't remove any buildings, it'll just prevent more from spawning. Anyways, here's what you will have to do. If you would like to see this trick in action before you attempt it, here's is my plug-in pack that uses this it:

Step 1:
Create a building that will enable and disable the RCI buildings. This building doesn't need any special code or anything. It can be any building you want. Just make sure to remember the ID because it'll become useful in step 2.

Step 2:
Next you will need to add an unlock requirement to the RCI buildings you want to enable or disable. You'll need to add this to your plug-ins:

Code: Select all

      "requirement": {
"requirements": [
{
"data": {
},
"type": "BUILDING"
}
]
},
Make sure that "YOUR ID HERE" is the ID of your building from step 1. After adding that code you now have to ability to enable and disable the spawning of your RCI plug-ins in-game with the press of a button. To enable spawning, just place the building from step 1 and to disable spawning destroy it.
Last edited by KINGTUT10101 on Thu Aug 31, 2017 20:25, edited 1 time in total.

Lobby
Developer
Reactions:
Posts: 3614
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

### Re: Enabling and Disabling Your RCI Spawning

That's actually a really interesting idea
=^._.^= ∫

Online
CommanderABab
AB
Reactions:
Posts: 8992
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

### Re: Enabling and Disabling Your RCI Spawning

You could use it to freeze a city.