Difference between revisions of "Callback: Wagon length"
From GRFSpecs
Jump to navigationJump to search (grf version 8) |
(refer to new roadveh property) |
||
Line 3: | Line 3: | ||
{{grf|8}} This callback is only called for GRF version 7 and below. For GRF version 8 and above use [[Callback:_Change_vehicle_properties|callback 36]]. |
{{grf|8}} This callback is only called for GRF version 7 and below. For GRF version 8 and above use [[Callback:_Change_vehicle_properties|callback 36]]. |
||
− | This callback is used instead of [[Action0Trains#Shorter train vehicles 21|property 21]] whenever the |
+ | This callback is used instead of [[Action0Trains#Shorter train vehicles 21|train property 21]] resp. [[Action0/Vehicles/RoadVehicles|road vehicle property 23]] whenever the vehicle leaves a depot or is displayed inside a depot. If the callback fails, the value of the property is used instead. |
− | |||
− | Road vehicles do not have a property for this purpose. If the callback fails, a length of 8/8 is used. |
||
The callback result may change only when whole vehicle chain is inside a depot. |
The callback result may change only when whole vehicle chain is inside a depot. |
Revision as of 00:16, 9 November 2011
Wagon length (11)
GRFv8 This callback is only called for GRF version 7 and below. For GRF version 8 and above use callback 36.
This callback is used instead of train property 21 resp. road vehicle property 23 whenever the vehicle leaves a depot or is displayed inside a depot. If the callback fails, the value of the property is used instead.
The callback result may change only when whole vehicle chain is inside a depot.