Jump to content

darkshifty

Member
  • Content Count

    9
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

10 Good

About darkshifty

  • Rank
    Private
  1. darkshifty

    [SP/MP] BeCTI

    It's a pitty i dont know a lot about the scripting i'd love to do it myself, but i do figured that in "\Client\Functions\Client_IsPlayerCommander.sqf" the commander is declared And in "\Client\Events\Events_UI_MapCommandMenu.sqf" the first few lines there is a check whether it is the commander who opens the map command menu, would an option be to declare the teamleaders and add such a check to the factory? Thank you for even looking into it, highly appreciated.
  2. darkshifty

    [SP/MP] BeCTI

    Ok guys i managed to add the teams but how can i restrict the factory to the teamleaders and commander only?
  3. darkshifty

    [SP/MP] BeCTI

    Hi Sari or Benny, is there a easy way that i can implement some sort of patrol ops structure where the teamleaders can buy assets and you have squads from four humans in total? plus the additional ai the teamleader buys?
  4. darkshifty

    Help, countdown to mission end

    Sorry CA was a typo, it stated call in the script. sadly that didnt work. if you have the time and interest, here is the basic working script: http://www54.zippyshare.com/v/35971146/file.html Thank you very much for all the effort so far.
  5. darkshifty

    Help, countdown to mission end

    Ah i see, sadly both solutions give errors or dont end the mission. here is the full code: setTimer.sqf private ["_timelimit"]; //declare a private variable _timelimit = "timelimit" call BIS_fnc_getParamValue; //grab the selected time from the parameters using a BIS function if (_timelimit == -1) exitWith {}; //If no timelimit is selected in the parameters, exit the script while {_timelimit > 0} do // As long as the countdown has not reached 0 keep going { _timelimit = (_timelimit -1); // subtract a second from the timer hintSilent format ["Time left: %1", _timelimit]; // hint to the player how much time is left sleep 1; // sleep for a second, then loop again }; Parameters class Timelimit { // paramsArray[(count params) - 3] title = "Time limit"; values[] = {0, 30, 2700, 3600, 5400, 7200, 10800}; texts[] = {"Unlimited", "30s", "45 min", "60 min", "90 min", "120 min", "180 min"}; default = 0; }; Init // Time Limit sleep 0.1; // wait until the mission starts nul = []execVM "scripts\setTimer.sqf"; // start the timer script Description class End3 { title = "Draw"; subtitle = ""; description = ""; pictureBackground = ""; picture = ""; pictureColor[] = {0.0,0.3,0.6,1}; }; i've also tried ["Loser",false,5] spawn BIS_fnc_endMission; //where "Loser" would be an end defined in the description.ext and also changed it to ["End3",false,5] call BIS_fnc_endMission; //where "Loser" would be an end defined in the description.ext or [_timeleft] spawn { while {_this >= 0} do {sleep 1;}; ["Loser", false, true] spawn BIS_fnc_endMission; }; and also changed it to [_timelimit] spawn { while {_this >= 0} do {sleep 1;}; ["End3", false, true] CA BIS_fnc_endMission; }; ---------- Post added at 09:08 ---------- Previous post was at 08:59 ---------- ive uploaded a test mission here: http://www54.zippyshare.com/v/35971146/file.html
  6. darkshifty

    Help, countdown to mission end

    i dont have the code at hand at the moment but i will post them later on, the parameters are correct. the countdown starts with the selected seconds.. ---------- Post added at 21:28 ---------- Previous post was at 21:27 ---------- that is going to be tricky as the script loops ---------- Post added at 21:30 ---------- Previous post was at 21:28 ---------- yes the ending is defined, i think this is what im looking for i will let you know tomorrow. thank you all for the help!
  7. darkshifty

    Help, countdown to mission end

    Oh yes i did made a good mistake there. but i also tried with timelimit and now i did it again, both cases: if (_timelimit == 0) then BIS_fnc_endMission; if (_timelimit == 0) then {endMission "END3"}; dont give an error, but wont end the mission. With thanks,
  8. i'm trying to make a timer which can be set via the parameters, ive got the following script that is ran via the init. with parameter. the countdown actually works, but the mission doesnt end. anyone knows the fix? private ["_timelimit"]; //declare a private variable _timelimit = "timelimit" call BIS_fnc_getParamValue; //grab the selected time from the parameters using a BIS function if (_timelimit == -1) exitWith {}; //If no timelimit is selected in the parameters, exit the script if (_timeleft == 0) then {endMission "END3"}; while {_timelimit > 0} do // As long as the countdown has not reached 0 keep going { _timelimit = (_timelimit -1); // subtract a second from the timer hintSilent format ["Time left: %1", _timelimit]; // hint to the player how much time is left sleep 1; // sleep for a second, then loop again }; im getting an error in the rpt file Error in expression < (_timelimit == -1) exitWith {}; if (_timeleft <= 0) then { endMission "END3> Error position: <_timeleft <= 0) then { endMission "END3> Error Undefined variable in expression: _timeleft File mpmissions\__cur_mp.Stratis\scripts\setTimer.sqf, line 8 which refers to if (_timeleft == 0) then {endMission "END3"}; but i can't figure out what i'm doing wrong here. the mission END3 does exist.
  9. darkshifty

    Time Limit Parameter

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