Barba-negra 117 Posted February 9, 2019 hello bohemian friends, greetings to all, I come here to see if you can help, estroy trying to run a scripts ramdos with the use of case, calling them with remotExec but it has not been, have you any idea how to do? Thank you _script = (floor random 3) + 1; switch (_script) do { case 1 : { [[]scripts_01.sqf'] remoteExec ['BIS_fnc_execVM']; }; case 2 : { [[]scripts_02.sqf'] remoteExec ['BIS_fnc_execVM']; }; case 3 : { [[]scripts_03.sqf'] remoteExec ['BIS_fnc_execVM']; }; }; Share this post Link to post Share on other sites
jts_2009 96 Posted February 9, 2019 _Script = selectRandom ["script1.sqf","script2.sqf","script3.sqf"]; [_Script] remoteExec ["execVM", 0]; 1 Share this post Link to post Share on other sites
Barba-negra 117 Posted February 9, 2019 thank you friend, I'll try it and notice Share this post Link to post Share on other sites
Grumpy Old Man 3550 Posted February 9, 2019 35 minutes ago, Barba-negra said: hello bohemian friends, greetings to all, I come here to see if you can help, estroy trying to run a scripts ramdos with the use of case, calling them with remotExec but it has not been, have you any idea how to do? Thank you _script = (floor random 3) + 1; switch (_script) do { case 1 : { [[]scripts_01.sqf'] remoteExec ['BIS_fnc_execVM']; }; case 2 : { [[]scripts_02.sqf'] remoteExec ['BIS_fnc_execVM']; }; case 3 : { [[]scripts_03.sqf'] remoteExec ['BIS_fnc_execVM']; }; }; Check the quotation marks. Cheers 1 Share this post Link to post Share on other sites
Barba-negra 117 Posted February 9, 2019 2 minutes ago, Grumpy Old Man said: Check the quotation marks. Cheers I will check it also, and I will notify the result Share this post Link to post Share on other sites