Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Online

Time Limit Parameter

Recommended Posts

Hi Guys,

i saw a lot of explanations about time limit parameter for a TDM mission, but nothing works for me.

My description.ext

class Params

{

class TimeOfDay

{

//paramsArray[0]

title = "Time of Day:";

values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};

texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"};

default = 16;

};

class Timelimit

{

//paramsArray[1]

title = "Time limit:";

values[] = {0, 30, 300, 600, 900};

texts[] = {"Unlimited", "30sek", "5 min", "10 min", "15 min"};

default = 900;

};

class Score

{

//paramsArray[2]

title = "Score Limit";

values[] = {99999, 2, 10, 30, 50, 100};

texts[] = {"Unlimited", "2", "10", "30", "50", "100"};

default = 30;

};

};

And my init.sqf

//Time of Day

definedTime = (paramsArray select 0);

skipTime definedTime;

// Time Limit

timelimit = (paramsArray select 1);

estimatedtimeleft timelimit;

And my trigger ingame

end_trigger.JPG

Can anyone help me with this problem?

I tried before...

description:

titleparam1 = "Time limit:"; etc...

init:

estimatedtimeleft param1; etc...

... and this works fine, but with the paramarray i doesnt work.

Btw. the "time of day timer" works fine.

Share this post


Link to post
Share on other sites

My problem was that i had two triggers with end1. Now it should work with my first post in this thread.

Share this post


Link to post
Share on other sites
Hi Guys,

i saw a lot of explanations about time limit parameter for a TDM mission, but nothing works for me.

My description.ext

And my init.sqf

And my trigger ingame

.....

Can anyone help me with this problem?

I tried before...

description:

titleparam1 = "Time limit:"; etc...

init:

estimatedtimeleft param1; etc...

... and this works fine, but with the paramarray i doesnt work.

Btw. the "time of day timer" works fine.

Thank you for the script... but how do we set the trigger? your screenshot has been deleted.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×