Hi!
I tried to make a working rollband display, but after all (i made the material type and the script) it doesn't work.
When i try to roll it, the "2. Texture" of the material is the same as the first one, but the TextID-s are not the same (as you can see on the pictures), and it is changing just when the ID-s changing too (when the DisplayNumber is again an integer value.
Do you have any ideas how to solve this problem?
lotus-simulator.de/index.php?attachment/22341/
The script:
Code
- upperIndex := trunc(displayNumber);
- DisplayNumberTranslate := displayNumber - upperIndex ;
- if previousUpperIndex <> upperIndex then
- begin
- DisplayNumberUpperTexID := GetTextureIndex(5749754, 10000 + upperIndex);
- DisplayNumberLowerTexID := GetTextureIndex(5749754, 10001 + upperIndex);
- DisplayNumberPreLoadTexID := GetTextureIndex(5749754, 10002 + upperIndex);
- previousUpperIndex := upperIndex;
- end;