So here's a coding question:
I am creating multiple truck and cargo graphical variants for random variation. The truck graphics should be randomly selected when the vehicle is built and the cargo graphics should be rerandomised each time the vehicle unloads and reloads...
The code I am currently using is:
For randomisation of different cargo graphic variants:
Code: Select all
25880 * 0 02 01 \b3 80 01 00 \b2 \w2 \w1
For randomisation of different truck graphic variants:
Code: Select all
25944 * 0 02 01 \b67 80 00 00 \b2 \w3 \w36
As I understand it for randomisation of cargo graphics I have set bit 0 for the re-randomisation trigger so the vehicle re-randomises the cargo graphics every time it gets a fresh load of cargo; this seems to work correctly. For randomisation of the truck graphics I have set no re-randomisation trigger bits so it should not retrigger, except it does re-randomise with a new load of cargo...
Does this need to be solved by setting the "randbit" to something different? I.e.:
For randomisation of different cargo graphic variants:
Code: Select all
25880 * 0 02 01 \b3 80 01 00 \b2 \w2 \w1
And for randomisation of different truck graphic variants:
Code: Select all
25944 * 0 02 01 \b67 80 00 01 \b2 \w3 \w36
But how does this then link to the number of graphical variants, e.g. for a truck with 4 graphical variants would the following be correct?
Code: Select all
25944 * 0 02 01 \b67 80 00 01 \b4 \w3 \w4 \w5 \w6
One bit is not enough to randomise between four different variants...