Difference between revisions of "Callback: Set initial production level on construction"

From GRFSpecs
Jump to navigationJump to search
(created)
(No difference)

Revision as of 16:59, 28 April 2012

Set initial production level on construction (15F)

Supported by OpenTTD 1.3 (r24186)1.3 Not supported by TTDPatch

This callback is called on constructon of industries. Similar to callback 29 result 0F it sets the production rate. You can use variable B3 to check the reason for the construction of the industry.

Variable 18 contains 32 random bits.

The result of the callback consists of:

Bits Meaning
0-7 Production level; must be in range 04..80h; default value when not using this callback is 10h.
8-14 Reserved, must be set to zero.