Jump to content
Sign in to follow this  
GiLaN

Choices of time and viewdistance in lobby

Recommended Posts

Hello everybody, i got a new question for you.

I have a mission, where you can change time of operation via the lobby in MP. And I got another mission, where you can change viewdistance still via the lobby in MP.

But I'd like to mix the two possibilities.

I tried everything without success :/

here is a part of my description.ext:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">titleParam1 = "Heure mission:";

valuesParam1[] = {1,2,3,4,5,6,7,8,9};

defValueParam1 = 4;

textsParam1[] = {"5h00","5h30","6h","6h30","7h","7h30","16h30","17h30","22h00"};

titleParam2 = "View Distance:";

valuesParam2[] = {850,900,1000,1200,1400,1600,1800,2000,2200,2400,2600,2800,3000,4000};

textsParam2[] = {"850m","900m","1000m","1200m","1400m","1600m","1800m","2000m","2200m","2400m","2600m","2800m","3000m","4000m"};

defValueParam2 = 1200;

and here is my init.sqs :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

?(Param1 == 1) : goto "5h"

?(Param1 == 2) : goto "5h30"

?(Param1 == 3) : goto "6h"

?(Param1 == 4) : goto "6h30"

?(Param1 == 5) : goto "7h"

?(Param1 == 6) : goto "7h30"

?(Param1 == 7) : goto "16h30"

?(Param1 == 8) : goto "17h"

?(Param1 == 9) : goto "22h"

if(!(param2 > 850)&&!(param2 < 10000));

setviewdistance param2;

setterraingrid 12.5;

#5h

skiptime 5

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#5h30

skiptime 5.5

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#6h

skiptime 6

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#6h30

skiptime 6.5

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#7h

skiptime 7

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#7h30

skiptime 7.5

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#16h30

skiptime 16.5

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#17h30

skiptime 17.5

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#22h

skiptime 22

0 setFog 0

0 setOvercast 0

goto "ConditionsSet"

#ConditionsSet

The result is that I can change both of them, but only the time of operation is actually changing. There is no change with the viewdistance sad_o.gif

Can anybody help me?

Thank you notworthy.gif

Share this post


Link to post
Share on other sites

Problem solved, displaced the part :

if(!(param2 > 850)&&!(param2 < 10000));

setviewdistance param2;

setterraingrid 12.5;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×