Jump to content
  • 0

need help


deik

Question

hello. guys tell me how to run one of the three files randomly when restarting the server. now it runs ExecVM "\z\addons\dayz_server\WAI\static\sector.sqf";, and I need to have sector.sqf, sector2.sqf, sector3.sqf. sorry for my English, I use online translation.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
5 hours ago, deik said:

hello. guys tell me how to run one of the three files randomly when restarting the server. now it runs ExecVM "\z\addons\dayz_server\WAI\static\sector.sqf";, and I need to have sector.sqf, sector2.sqf, sector3.sqf. sorry for my English, I use online translation.

ExecVM format["\z\addons\dayz_server\WAI\static\%1.sqf",(["sector","sector2","sector3"] call BIS_fnc_selectRandom)];

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...