Action Index
Moderator: Plugin Moderators
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 2220
- Joined: 07 Jul 2016, 22:50
- Location: 'Merica
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Action Index
Is there a way to set the performance of a building with Lua?
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Action Index
Right now there is no easy function for that. However, you could use:
with performance being a float number, 1 for 100%. The performance value will be clipped by the min and max values specified in the draft of the building.
Code: Select all
City.getCity():getTile(x, y).building:setPerformance(performance)