Impavido 0 Posted May 20, 2007 Can somewone clarify exactly how the time limit parameters in the description file work? Â For example: Quote[/b] ]titleParam1 = "Time limit:";valuesParam1[] = {0, 900, 1800, 2700, 3600}; defValueParam1 = 1800; textsParam1[] = {"Unlimited", "15 min", "30 min", "45 min", "1 Hour" }; Is the "Time limit" a variable name in the mission or just the title of the list to be selected? Â And how exactly does the time limit execute an end to the mission? Â How does the mission understand the value of the parameters selected. Â Is it automatic or do I need to create a trigger for it? And if I was to use this parameter feature for other things, such as weather, vehicles available, score limits, etc. Â What is the proper syntax to use? I realize this is a basic question, but my search yielded only basic answers such as the Ending # triggers and time-tracking scripts. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted May 20, 2007 Ok, titleParam1 is the title of the parameter shown in the unit selection screen of the mission, textParam1 is an array (list) of the options that will be shown in the unit selection screen, each option has a corrosponding value in valuesParam1. When one of the items from textsParam1 is selected, its value from valuesParam1 is given to the global variable Param1 in the mission. Param1 can be used just like any other variable, it will be equal to the value from valuesParam1 that corrosponds with the selected item from textsParam1. So, using your example, if "15 min" is selected for the mission, when the mission starts the variable Param1 will be equal to 900. Using that, the mission maker might have something in the init.sqs/.sqf that checks the value of Param1 and uses it to achieve the desired effect. defValueParam1 is the value of the item from textsParam1 that will be selected by default when the mission is loaded. Share this post Link to post Share on other sites
Op4 BuhBye 0 Posted May 20, 2007 Yes you have to make a trigger to end it when the time variable = the time selected. Share this post Link to post Share on other sites
Impavido 0 Posted May 20, 2007 Thank you very much. Share this post Link to post Share on other sites