
spin=0;
spincount=0;



player addAction ["<t color='' size='1.2' shadow='1' shadowColor='#000000'>Deploy Fidget Spinner</t>", {   

player playmove "AmovPercMstpSnonWnonDnon_AinvPercMstpSnonWnonDnon_Putdown";

[] spawn {
	
	sleep 0.1;

 	_createfidget = "KartSteertingWheel_01_red_F" createVehicle getPos player; 
 	_createfidget attachTo [player, [0, 0.6, 1.4], "hands"];
 	sleep 0.1;

	player addAction ["<t color='#48DE65'>Spin</t>", { spin=1;    titleText ["Autism Cured","PLAIN DOWN"]; titleFadeOut 2; playSound3D ["sounds\spinstart.wav", player];
while {spin==1} do { 

	_createfidget = "KartSteertingWheel_01_red_F" createVehicle screenToWorld[0.5, -50];; 
	sleep 0.01;  {deleteVehicle _x; } forEach attachedObjects player; sleep 0.01; _createfidget attachTo [player, [0, 0.6, 1.4], "hands"];
	_createfidget setDir 10; sleep 0.01; _createfidget setDir 20; sleep 0.01; _createfidget setDir 30; sleep 0.01; _createfidget setDir 40;
	_createfidget setDir 50; sleep 0.01; _createfidget setDir 60; sleep 0.01; _createfidget setDir 70; sleep 0.01; _createfidget setDir 80;
	_createfidget setDir 90; sleep 0.01; _createfidget setDir 100; sleep 0.01; _createfidget setDir 110; sleep 0.01; _createfidget setDir 120;
	_createfidget setDir 130; sleep 0.01; _createfidget setDir 140; sleep 0.01; _createfidget setDir 150; sleep 0.01; _createfidget setDir 160;
	_createfidget setDir 170; sleep 0.01; _createfidget setDir 180; sleep 0.01; _createfidget setDir 190; sleep 0.01; _createfidget setDir 200;
	_createfidget setDir 210; sleep 0.01; _createfidget setDir 220; sleep 0.01; _createfidget setDir 230; sleep 0.01; _createfidget setDir 240;
	_createfidget setDir 250; sleep 0.01; _createfidget setDir 260; sleep 0.01; _createfidget setDir 270; sleep 0.01; _createfidget setDir 280;
	_createfidget setDir 290; sleep 0.01; _createfidget setDir 300; sleep 0.01; _createfidget setDir 310; sleep 0.01; _createfidget setDir 320;
	_createfidget setDir 330; sleep 0.01; _createfidget setDir 340; sleep 0.01; _createfidget setDir 350; sleep 0.01; _createfidget setDir 360;

	spincount = spincount + 1;
	hint str spincount; 
					};   }]; 


	player addAction ["<t color='#DF5303'>Stop</t>", { spin=0; playSound3D ["sounds\spinstop.wav", player];  }]; 



 	player addAction ["<t color='#EE2D07'>Drop</t>", { spin=0; {detach _x; } forEach attachedObjects player;
 	  player removeAction 2; player removeAction 3; player removeAction 4; player removeAction 5; player removeAction 6; player removeAction 7; player removeAction 8; player removeAction 9; player removeAction 10;
 	  player removeAction 11; player removeAction 12; player removeAction 13; player removeAction 14; player removeAction 15; player removeAction 16; player removeAction 17; player removeAction 18; player removeAction 19;
 	  player removeAction 20; player removeAction 21; player removeAction 22; player removeAction 23; player removeAction 24; player removeAction 25; player removeAction 26; player removeAction 27; player removeAction 28;
 	  player removeAction 29; player removeAction 30; player removeAction 31; player removeAction 32; player removeAction 33; player removeAction 34; player removeAction 35; player removeAction 36; player removeAction 37;
 	  player removeAction 38; player removeAction 39; player removeAction 40; player removeAction 41; player removeAction 42; player removeAction 43; player removeAction 44; player removeAction 45; player removeAction 46;
 	  player removeAction 47; player removeAction 48; player removeAction 49; player removeAction 50; player removeAction 51; player removeAction 52; player removeAction 53; player removeAction 54; player removeAction 55;
 	  player removeAction 56; player removeAction 57; player removeAction 58; player removeAction 59; player removeAction 60; player removeAction 61; player removeAction 62; player removeAction 63; player removeAction 64;
 	  player removeAction 65; player removeAction 66; player removeAction 67; player removeAction 68; player removeAction 69; player removeAction 70; player removeAction 71; player removeAction 72; player removeAction 73;
 	  player removeAction 74; player removeAction 75; player removeAction 76; player removeAction 77; player removeAction 78; player removeAction 79; player removeAction 80; player removeAction 81; player removeAction 82;
 	  player removeAction 83; player removeAction 84; player removeAction 85; player removeAction 86; player removeAction 87; player removeAction 88; player removeAction 89; player removeAction 90; player removeAction 91;
 	  player removeAction 92; player removeAction 93; player removeAction 94; player removeAction 95; player removeAction 96; player removeAction 97; player removeAction 98; player removeAction 99; player removeAction 100;
 	  player removeAction 101; player removeAction 102; player removeAction 103; player removeAction 104; player removeAction 105; player removeAction 106; player removeAction 107; player removeAction 108; player removeAction 109;
 	  player removeAction 110; player removeAction 111; player removeAction 112; player removeAction 113; player removeAction 114; player removeAction 115; player removeAction 116; player removeAction 117; player removeAction 118;
 	  player removeAction 119; player removeAction 120; player removeAction 121; player removeAction 122; player removeAction 123; player removeAction 124; player removeAction 125; player removeAction 126; player removeAction 127;
 	  player removeAction 128; player removeAction 129; player removeAction 130; player removeAction 131; player removeAction 132; player removeAction 133; player removeAction 134; player removeAction 135; player removeAction 136;
 	  player removeAction 137; player removeAction 138; player removeAction 139; player removeAction 140;}]; 

		 }

}]; 




player playmove "AmovPercMstpSnonWnonDnon_AinvPercMstpSnonWnonDnon_Putdown";

}]; 







