Jump to content

Online

Member
  • Content Count

    16
  • Joined

  • Last visited

  • Medals

Posts posted by Online


  1. It works fine now and i dont want to edit.

    "Dont change a running system" ;)

    Btw. i need the loop, because i have a virtual ammobox and the people should use every weapon and saved kits but only without the nv. Its a night mission and a lot more action if the people only use the lamp at the weapon.


  2. Edit:

    i improved this param like this:

    description

    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;

    };

    init

    //Time of Day

    definedTime = (paramsArray select 0);

    skipTime definedTime;

    With this method i can use more than two parameters for a mission. With the post in the top i can only use 2.


  3. Okay just a second :)

    ---------- Post added at 19:24 ---------- Previous post was at 19:16 ----------

    What the hell.. now the script doesnt work, i mean without the loop.

    I use the same script like in the beginning and now it doenst work, how can that happend?

    ---------- Post added at 19:37 ---------- Previous post was at 19:24 ----------

    Perfect!! Now it works fine. :D

    I used this:

    while {true} do {

    {

    if (side _x == east) then {

    _x unassignItem "NVGoggles";

    _x removeItem "NVGoggles";

    };

    } foreach allunits;

    {

    if (side _x == west) then {

    _x unassignItem "NVGoggles";

    _x removeItem "NVGoggles";

    };

    } foreach allunits;

    Sleep 5;};

    Really big thanks BangaBob!


  4. Yes now i see, my fault :)

    ---------- Post added at 19:06 ---------- Previous post was at 19:04 ----------

    Now i have this:

    while {true} do

    {

    _x unassignItem "NVGoggles";

    _x removeItem "NVGoggles";

    } foreach allunits;

    Sleep 5;};

    But the script doesnt work now.


  5. Hi Guys,

    i searched a loop function, but i am not sure what i need.

    I have a script to remove the nvgoggles, but after the respawn everyone has again the goggles.

    My .sqf

    {

    {

    if (side _x == east) then {

    _x unassignItem "NVGoggles";

    _x removeItem "NVGoggles";

    };

    } foreach allunits;

    {

    if (side _y == west) then {

    _y unassignItem "NVGoggles";

    _yremoveItem "NVGoggles";

    };

    } foreach allunits;

    };

    I have also a virtual ammobox on my map and the people should take the normal gear, but only without the nvgoggles. The script works fine and it should only repeat every 5 or 10 seconds maybe.

    Regards


  6. 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.


  7. Hi Guys,

    i searched already every thread about time parmeters, but i dont find a solution for my problem.

    I want a parameter to set the time of day of the mission in the lobby.

    My description.ext

    titleParam1 = "Time limit:";

    valuesParam1[] = {0, 300, 600, 900};

    textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min"};

    defValueParam1 = 900;

    titleParam2 = "Time of Day";

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

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

    defaultParam2 = 16;

    And my init.sqf

    estimatedtimeleft param1;

    skiptime param2;

    I see both parameters in the lobby and the time limit parameter works fine. But every time i start the map, its 12:00.

    Maybe anyone can help me to solve this problem?

    ---------- Post added at 23:41 ---------- Previous post was at 23:34 ----------

    Okay... after i post this thread i find the solution.

    I only need to set the ingame missiom time to 0:00 and now the parameter works.

    I hope this will help other people. :)

×