Jump to content
Sign in to follow this  
alleycat

How to use parameters in MP and apply them correctly with variables?

Recommended Posts

I want to have selectable difficulty levels in my mp mission. I have setup the selectable parameters, however when it comes to applying them in the mission, it does not work.

Basically I want, depending on what level is selected, specific units to appear.

init.sqf

diff_level = 0

timeparam = (paramsArray select 0);
if (timeparam == 0) then {diff_level = 0};
if (timeparam == 1) then {diff_level = 1};
if (timeparam == 2) then {diff_level = 2};

There are 3 units, each has one of this in the condition:

diff_level >= 0

diff_level >= 1

diff_level >= 2

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  

×