Difference between revisions of "Callback: Load amount"

From GRFSpecs
Jump to navigationJump to search
(Create CB LoadAmount)
 
m (Create a separate page for each callback *** existing text overwritten ***)
Line 8: Line 8:
   
 
Finally to distinguish the passenger and the mail part you can use variable 47 or even 40.
 
Finally to distinguish the passenger and the mail part you can use variable 47 or even 40.
  +
[[Category:Callbacks]]

Revision as of 18:57, 16 June 2011

Load amount (12)

This callback is used instead of property 07 when loading a game or rearranging a train in a depot (or when buying other vehicles). If the callback fails, the value of property 07 is used instead.

Note: For aircraft carrying both passengers and mail this callback is broken (wrt. mail) in TTDPatch and OpenTTD before r14672.

Since OpenTTD r14672 the callback is called for passengers and for mail. The mail compartment behaves like a wagon attached to a train engine. I.e. to read general variables of the aircraft you have to use varaction2 type 82/86/8A (related object), as most variables are not valid for the mail compartment.

Finally to distinguish the passenger and the mail part you can use variable 47 or even 40.