Jump to content
Barba-negra

scripts ramdon remoteExec

Recommended Posts

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

_Script = selectRandom ["script1.sqf","script2.sqf","script3.sqf"];

[_Script] remoteExec ["execVM", 0];

  • Like 1

Share this post


Link to post
Share on other sites
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

  • Like 1

Share this post


Link to post
Share on other sites
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×