Difference between revisions of "Callback: Trigger building destruction"
From GRFSpecs
Jump to navigationJump to searchm (Create a separate page for each callback)  | 
				 (use new grf templates)  | 
				||
| (One intermediate revision by the same user not shown) | |||
| 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.  | 
| + | |||
| + | {{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.