Difference between revisions of "Callback: Decide object colour"
From GRFSpecs
Jump to navigationJump to searchm (Create a separate page for each callback) |
(No difference)
|
Revision as of 18:58, 16 June 2011
Decide object colour (15B)
This callback allows you to set/modify the colour of an object upon construction. Variable 10 contains the current company colour or a random colour for when there is no company, i.e. in the scenario editor. If the object wants a 2CC colour mapping two nibbles, i.e. two colours, are passed in variable 10, otherwise one nibble (colour).