OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: froggy333 on 22 Jul 2004, 23:32:50

Title: Mission Params
Post by: froggy333 on 22 Jul 2004, 23:32:50
Hi,
 I don't know how it is done, when your on a multiplayer mission and you have the mission parameter boxes to select date, time, vehicles etc.
How are these done, is it in description.ext. Please could someone explain if they know OR direct me in the way of a tutorial

Thanks in advance

Chris
Title: Re:Mission Params
Post by: Planck on 22 Jul 2004, 23:39:57
Try the Editors Depot, you can find tutorials on most subjects there.


Planck
Title: Re:Mission Params
Post by: froggy333 on 23 Jul 2004, 15:07:20
Despite all my looking i could not find any tutorials on Parameter  :-[ :-[
Title: Re:Mission Params
Post by: Artak on 23 Jul 2004, 17:29:08
Code: [Select]
titleParam1 = "Time";
valuesParam1[] = {1, 2, 3, 4, 5};
defValueParam1 = 1;
textsParam1[] = {"Dawn", "Day", "Dusk", "Night", "Random"};

titleParam2 = "Weather";
valuesParam2[] = {1, 2, 3, 4, 5, 6};
defValueParam2 = 1;
textsParam2[] = {"Clear", "Overcast", "Foggy", "Rainy", "Storm", "Random"};

The above goes to description.ext.
titleParam1 = "Time"; The name of the parameter. It shows above the parameter box in MP pool.
valuesParam1[] = {1, 2, 3, 4, 5}; How many different values the parameter can have.
defValueParam1 = 1; The default value of the param.
textsParam1[] = {"Dawn", "Day", "Dusk", "Night", "Random"}; The texts shown in the parameter box in MP pool. These reflect to the given values.

After defining the parameters in description.ext you can ask them in game like
?param1 == 1: hint "You selected Dawn"
or
?param2 == 3: 0 setfog 1
Title: Re:Mission Params
Post by: froggy333 on 23 Jul 2004, 21:46:28
THANKS!! ;D
Just what i was looking for

Thanks
Chris
:thumbsup::thumbsup: