Difference between revisions of "Callback: Trigger building destruction"
From GRFSpecs
Jump to navigationJump to searchm (Create a separate page for each callback) |
(grf version 8) |
||
Line 1: | Line 1: | ||
== Trigger building destruction (21) == |
== Trigger building destruction (21) == |
||
− | Called periodically, in a time interval specified by property 16. |
+ | Called periodically, in a time interval specified by property 16. Return 0 to do nothing, or 1 to remove the building from the map as if the town decided to destroy it. You can use this for example to remove a historical building, since those cannot be normally removed by towns. |
+ | |||
+ | {{grf|8}} Note that GRF versions 7 and lower only distinguished zero and non-zero return values. |
||
+ | |||
[[Category:Callbacks]] |
[[Category:Callbacks]] |
Revision as of 00:32, 9 November 2011
Trigger building destruction (21)
Called periodically, in a time interval specified by property 16. Return 0 to do nothing, or 1 to remove the building from the map as if the town decided to destroy it. You can use this for example to remove a historical building, since those cannot be normally removed by towns.
GRFv8 Note that GRF versions 7 and lower only distinguished zero and non-zero return values.