Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Rain^^

MP Mission Param

Recommended Posts

How to complete mission after a selected time or score?(in param missions)

What do I need to write in trigger?

I wrote in Description.ext

titleParam1 = "Time limit:";
valuesParam1[] = {0, 300, 600, 900};
defValueParam1 = 900;
textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min"};

titleParam2 = "Score to win:";
valuesParam2[] = {10000, 5, 7, 10, 15, 20, 25, 30};
defValueParam2 = 5;
textsParam2[] = {"Unlimited", 5, 7, 10, 15, 20, 25, 30};

In Init.sqf

timelimit = param1

scorelimit = param2

Share this post


Link to post
Share on other sites

That's the old and busted method. This is the new hotness:

description.ext:

class Params { 	
class timeLimit { 
	title = "Time limit"; 
	values[] = {0, 300, 600, 900}; 
	texts[] = {"Unlimited", "5 min", "10 min", "15 min"}; 
	default = 900; 
}; 

class scoreLimit { 
	title = "Score to win"; 
	values[] = {10000, 5, 7, 10, 15, 20, 25, 30}; 
	texts[] = {"Unlimited", "5", "7", "10", "15", "20", "25", "30"}; 
	default = 5; 
};
};

init.sqf:

timelimit = paramsArray select 0;
scorelimit = paramsArray select 1;

Share this post


Link to post
Share on other sites
That's the old and busted method. This is the new hotness:

Thanks you!

But what do I need to write in trigger?

1gFP6.jpeg

Share this post


Link to post
Share on other sites

Check out the cfgDebriefing for the description.ext. You would call it in a trigger like this

"end1" call BIS_fnc_endMission

Share this post


Link to post
Share on other sites
Sign in to follow this  

×