Skip to content

Instantly share code, notes, and snippets.

global proc vehicleLoop( string $time, string $textureProfile, int $areaNum, int $camNum, int $zoomNum ) {
for( $carNum = 1; $carNum < 6; ++$carNum ) {
// display the correct car
string $carName = "car_transform" + $carNum;
showHidden $carName;
string $carShader = "car" + $carNum + "_shader1.color";
for( $index = 1; $index < 3; ++$index ) {
float $randomFloat = rand( 1, 10.99 );