Jump to content
Dj Rolnik

selectRandom problem

Recommended Posts

Hey,

 

I'm having trouble executing a random code from the arrays provided. Once I reach this point in the script, how do I "run" either of the three?

selectRandom
[
    (hint "All systems operational 1."),
    (hint "All systems operational 2."),
    (execVM "jet1.sqf")
];

Thanks in advance,

Adam

Share this post


Link to post
Share on other sites

first () -> {}

 

then

 

_code = selectRandom ...

 

call _code;

 

should do it

  • Like 3

Share this post


Link to post
Share on other sites
6 hours ago, gc8 said:

first () -> {}

 

then

 

_code = selectRandom ...

 


call _code;

 

should do it

 

Yep, working great now. Thank you very much!

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

×