Callback: Trigger building destruction: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
grf version 8 |
use new grf templates |
||
| Line 3: | Line 3: | ||
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. |
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. |
||
{{ |
{{grfTill|7}} Note that GRF versions 7 and lower only distinguished zero and non-zero return values. |
||
[[Category:Callbacks]] |
[[Category:Callbacks]] |
||
Latest revision as of 13:24, 1 April 2012
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.
GRFv≤7 Note that GRF versions 7 and lower only distinguished zero and non-zero return values.