Setting colors to objects

Posts 16–18 of 18 · Page 2 of 2
Quote Originally Posted by yoyopeace7 View Post
how do you make it change colors in a loop..?
ask rustler
Quote Originally Posted by Jme View Post
ask rustler
Code:
ThisIsMe 		= vehicle player;
publicVariable "ThisIsMe";
rainbowbitch = 1;
rainbow_var = 0;
while {rainbowbitch == 1} do
{
	rainbowbitchz =
	[
		"1,0,0,5",
		"1,0.4,0.15,1",
		"1,1,0,1",
		"0,1,0,5",
		"0,0,1,5",
		"1,0.8,0.8,1",
		"1,0,1,0.2"
	];
	if (rainbow_var < (count rainbowbitchz)) then{rainbow_var = rainbow_var + 1;};
	if (rainbow_var > (count rainbowbitchz) - 1) then {rainbow_var = 0;};

	colorME_K = format ["ThisIsMe setobjecttexture [0,'#(argb,1,1,1)color(%1)'];", rainbowbitchz select rainbow_var];
	[colorME_K] execVM "path\to\re.sqf";
	sleep (random 1);
};
Quote Originally Posted by Pseudonym View Post
Code:
ThisIsMe 		= vehicle player;
publicVariable "ThisIsMe";
rainbowbitch = 1;
rainbow_var = 0;
while {rainbowbitch == 1} do
{
	rainbowbitchz =
	[
		"1,0,0,5",
		"1,0.4,0.15,1",
		"1,1,0,1",
		"0,1,0,5",
		"0,0,1,5",
		"1,0.8,0.8,1",
		"1,0,1,0.2"
	];
	if (rainbow_var < (count rainbowbitchz)) then{rainbow_var = rainbow_var + 1;};
	if (rainbow_var > (count rainbowbitchz) - 1) then {rainbow_var = 0;};

	colorME_K = format ["ThisIsMe setobjecttexture [0,'#(argb,1,1,1)color(%1)'];", rainbowbitchz select rainbow_var];
	[colorME_K] execVM "path\to\re.sqf";
	sleep (random 1);
};
Lets test this :3
Posts 16–18 of 18 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us