Home   Help Search Login Register  

Author Topic: Mission Params  (Read 490 times)

0 Members and 1 Guest are viewing this topic.

froggy333

  • Guest
Mission Params
« 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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Mission Params
« Reply #1 on: 22 Jul 2004, 23:39:57 »
Try the Editors Depot, you can find tutorials on most subjects there.


Planck
I know a little about a lot, and a lot about a little.

froggy333

  • Guest
Re:Mission Params
« Reply #2 on: 23 Jul 2004, 15:07:20 »
Despite all my looking i could not find any tutorials on Parameter  :-[ :-[

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Mission Params
« Reply #3 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
Not all is lost.

froggy333

  • Guest
Re:Mission Params
« Reply #4 on: 23 Jul 2004, 21:46:28 »
THANKS!! ;D
Just what i was looking for

Thanks
Chris
:thumbsup::thumbsup: