Rain^^ 10 Posted September 23, 2013 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
kylania 568 Posted September 23, 2013 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
Rain^^ 10 Posted September 23, 2013 That's the old and busted method. This is the new hotness: Thanks you! But what do I need to write in trigger? Share this post Link to post Share on other sites
Johnson11B2P 3 Posted October 13, 2013 How are you keeping track of the time limit and score limit? Share this post Link to post Share on other sites
Johnson11B2P 3 Posted October 14, 2013 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