Jump to content
Sign in to follow this  
quincy

choose random script

Recommended Posts

i want some randomness in my script for example

this execVm"somthing.sqf"; OR this execVM "somthing2.sqf";

anyone know how?

Share this post


Link to post
Share on other sites

_scripts = ["script01.sqf", "script02.sqf", "script03.sqf"];

_answer = _scripts select (floor(random(count _scripts)));

[] execVM _answer;

Hope that helps!

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
Sign in to follow this  

×