Callback: Visual effect and wagon power
Visual effect and wagon power (10)
|Features:||trains, road vehicles, ships|
|Fail result means||default properties|
This callback is used to determine the visual effect to use for a vehicle and whether a train wagon is powered (adding power and weight to the train).
The 'powered wagon'-flag only applies for train wagons that would by default be powered (i.e. property 1B is set).
The callback is only called when loading a game, when the train reverses, or when rearranging the train in a depot.
If the callback fails for any reason (e.g. not defined, action 2 does not return callback result etc.), the value of the corresponding action 0 property ( train property 22, road vehicle property 21, ship property 1C ) is used instead. For possible return values, refer to these properties as well.