Alternating Line Textures
Posted: Fri Jan 29, 2021 3:47 am
I created a console and assigned the first of three textures to it. The three textures are from D3 Textures Set and are nearly identical except for some small lights. Using Zscript I can get it to change from TXT1 to TXT2 to TXT3, but then it stops. How do I make it loop back and repeat the script?
script 4 (void) {
SetLineTexture (222, SIDE_FRONT, TEXTURE_BOTTOM, "CPNL3K0");
delay (17);
SetLineTexture (222, SIDE_FRONT, TEXTURE_BOTTOM, "CPNL3K1");
delay (17);
SetLineTexture (222, SIDE_FRONT, TEXTURE_BOTTOM, "CPNL3K2");
delay (17);
What do I need here to make it go back to the beginning of the script and repeat????
}
script 4 (void) {
SetLineTexture (222, SIDE_FRONT, TEXTURE_BOTTOM, "CPNL3K0");
delay (17);
SetLineTexture (222, SIDE_FRONT, TEXTURE_BOTTOM, "CPNL3K1");
delay (17);
SetLineTexture (222, SIDE_FRONT, TEXTURE_BOTTOM, "CPNL3K2");
delay (17);
What do I need here to make it go back to the beginning of the script and repeat????
}