Callback: Wagon length: Difference between revisions

From GRFSpecs
Jump to navigation Jump to search
Content deleted Content added
refer to new roadveh property
use new grf templates
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Wagon length (11) ==
== Wagon length (11) ==


{{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]].
{{grfTill|7}} This callback is only called for GRF version 7 and below.
{{grfFrom|8}} For GRF version 8 and above use [[Callback:_Change_vehicle_properties|callback 36]].


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.
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.


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. If your vehicle supports autorefit, and the length can change on refitting, you have to use [[Callback:_Refit_cost_factor|callback 15E]] to prevent the refitting.
[[Category:Callbacks]]
[[Category:Callbacks]]

Latest revision as of 13:34, 1 April 2012

Wagon length (11)

GRFv≤7 This callback is only called for GRF version 7 and below. GRFv≥8 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. If your vehicle supports autorefit, and the length can change on refitting, you have to use callback 15E to prevent the refitting.