Jump to content

Midnighters

Member
  • Content Count

    894
  • Joined

  • Last visited

  • Medals

Everything posted by Midnighters

  1. Hello all. I had made a script for saving player information on the server's profile. if (isServer) then { addMissionEventHandler["HandleDisconnect",{ //params ["_unit", "_id", "_uid", "_name"]; _unit = _this select 0; _uid = _this select 2; diag_log format["%1 %2 %3",_name, _unit, _uid]; profileNamespace setVariable[_uid,[(getPosATL _unit),(getDammage _unit),(getFatigue _unit),(getStamina _unit),(_unit getUnitTrait "Medic"),(_unit getUnitTrait "Engineer"),(getAllOwnedMines _unit)]]; saveProfileNamespace; diag_log (profileNamespace getVariable _uid); }]; ["CH","onPlayerConnected",{ //params ["_id", "_uid", "_name", "_jip", "_owner"]; _uid = _this select 1; diag_log format["%1 has connected",_uid]; { if( (getPlayerUID _x) == _uid ) exitWith { diag_log 'OK'; private _variable = (profileNamespace getVariable _uid); _x setPos (_variable select 0); _x setDamage (_variable select 1); _x setFatigue (_variable select 2); _x setStamina (_variable select 3); if(_variable select 4) then {_x setUnitTrait["Medic",true];}; if(_variable select 5) then {_x setUnitTrait["Engineer",true];}; }; } forEach allPlayers; }] call BIS_fnc_addStackedEventHandler; }; currently the only thing that works is the save whilst the server has not restarted. once the server restarts, then it's irretrievable. Even though the variable is still stored in the server profile vars. here is the rpt: Dropbox - Rpt File Any help on this?
  2. Hello everyone, I've compiled a list of known video or ogv files that I have found, if you have found more then please let me know. \a3\missions_f\video\helicopters.ogv \a3\missions_f\video\infantry.ogv \a3\missions_f\video\scuba.ogv \a3\missions_f\video\supports.ogv \a3\missions_f\video\vehicles.ogv \a3\missions_f_beta\video\combined_arms.ogv \a3\missions_f_beta\video\commanding.ogv \a3\missions_f_beta\video\defend.ogv \a3\missions_f_beta\video\night.ogv \a3\missions_f_beta\video\supports.ogv \a3\missions_f_bootcamp\video\boot_m05_sometime_later.ogv \a3\missions_f_bootcamp\video\vr_boot.ogv \a3\missions_f_bootcamp\video\vr_generictransition_1.ogv \a3\missions_f_bootcamp\video\vr_generictransition_2.ogv \a3\missions_f_bootcamp\video\vr_generictransition_3.ogv \a3\missions_f_epa\video\a_hub_quotation.ogv \a3\missions_f_epa\video\a_in_intro.ogv \a3\missions_f_epa\video\a_in_quotation.ogv \a3\missions_f_epa\video\a_in2_two_hours_later.ogv \a3\missions_f_epa\video\a_m01_quotation.ogv \a3\missions_f_epa\video\a_m02_quotation.ogv \a3\missions_f_epa\video\a_m03_quotation.ogv \a3\missions_f_epa\video\a_m04_quotation.ogv \a3\missions_f_epa\video\a_m05_quotation.ogv \a3\missions_f_epa\video\a_out_quotation.ogv \a3\missions_f_epa\video\a_out_some_time_later.ogv \a3\missions_f_epa\video\a_out_to_be_continued.ogv \a3\missions_f_epa\video\b_hub01_10_days_later.ogv \a3\missions_f_epa\video\b_hub01_few_hours_later.ogv \a3\missions_f_epa\video\b_hub01_quotation.ogv \a3\missions_f_epa\video\b_in_quotation.ogv \a3\missions_f_epa\video\b_in2_12_hours_later.ogv \a3\missions_f_epa\video\b_m01_quotation.ogv \a3\missions_f_epa\video\b_m02_quotation.ogv \a3\missions_f_epa\video\b_m03_quotation.ogv \a3\missions_f_epa\video\b_m06_quotation.ogv \a3\missions_f_epa\video\b_out2_quotation.ogv \a3\missions_f_epa\video\b_out2_sometime_later.ogv \a3\missions_f_epa\video\c_ea_quotation.ogv \a3\missions_f_epa\video\c_eb_quotation.ogv \a3\missions_f_epa\video\c_in1_quotation.ogv \a3\missions_f_epa\video\c_in2_quotation.ogv \a3\missions_f_epa\video\c_m01_quotation.ogv \a3\missions_f_epa\video\c_m02_quotation.ogv \a3\missions_f_epa\video\c_out1_quotation.ogv \a3\missions_f_epa\video\c_out2_sometime_later.ogv \a3\missions_f_epa\video\fixed_wings.ogv \a3\missions_f_gamma\video\arma.ogv \a3\missions_f_gamma\video\drones.ogv \a3\missions_f_gamma\video\faction_blufor.ogv \a3\missions_f_gamma\video\faction_independent.ogv \a3\missions_f_gamma\video\faction_opfor.ogv \a3\missions_f_gamma\video\gunships.ogv \a3\missions_f_gamma\video\tanks.ogv \a3\missions_f_heli\video\slingloading.ogv \a3\missions_f_mark\video\ffv.ogv \a3\missions_f_mark\video\marksman.ogv Thanks to kauppapekka for: \a3\missions_f_epa\video\a_in2_quotation.ogv \a3\missions_f_epa\video\b_m05_quotation.ogv \a3\missions_f_epa\video\b_m02_1_quotation.ogv
  3. Hello everyone, I have compiled a little list of base classes for CfgVehicles. so that these can be used in combination with isKindOf CfgVehicles Base I had created a pastebin to preserve a little more forum space.
  4. Hello everyone, I have made a video explaining the setup process for the strategic map module. I have seen it used in very useful ways in missions. Hopefully this will allow you to do the same. Arma 3 Tutorial: Strategic Map Module Setup
  5. [_var1,_var2] spawn { params["_var1","_var2"]; hintSilent format["This is VAR1: %1, This is VAR2: %2",_var1,_var2]; sleep 0.5; }; q note: whenever using spawn you'll need to pass any variables to spawn before you can use them in that scope.
  6. Midnighters

    Force vehicle color global

    just to clarify: "this" (without underscore) , is an editor only thing. So inside triggers, init boxes, etc it exists / is defined. whenever you're making an SQF script you may see: _this , which will either be the parameters passed to the script, or depending on what you're using it may be a special variable for something.
  7. Midnighters

    setTimeMultiplier

    https://community.bistudio.com/wiki/Arma_3_Mission_Parameters + GEORGE FLOROSGR 's
  8. Errors? Did the debug console return the event handler index properly? Did you execute locally?
  9. player addEventHandler["FiredMan", { params["_unit","_weapon","_muzzle","_mode","_ammo","_magazine","_projectile","_vehicle"]; _sphere = "Sign_Sphere10cm_F" createVehicle (getPosATL _projecitle); _sphere attachTo[_projectile,[0,0,0]]; }];
  10. Hello all, I'm curious as to grab a player / unit's object from the server. I want to refrain from doing: { if(_x == player) then { //etc }; } forEach allPlayers; any good solutions to this?
  11. Midnighters

    Return player object from server

    Yes, there is no confusion. Thanks for your feedback pierre
  12. Midnighters

    Return player object from server

    { } forEach playableUnits; //etc
  13. Midnighters

    Return player object from server

    Not in the slightest, I was just hoping for something better than that. It's already written so.
  14. Midnighters

    Return player object from server

    Was curious if there was a more streamlined process.
  15. Midnighters

    Return player object from server

    No I was never using allPlayers, just throwing an example. Thanks for your feedback though
  16. Midnighters

    Does a public stats API exist ?

    you're welcome, I'm used to hearing Eric go on and on about this. That's particularly why I posted. But, I do hope you end up with a solution indeed.
  17. Midnighters

    Removing stanima?

    doesn't matter MP or SP. I'm not sure if they reset on respawn, but they definitely don't need to be updated in a loop. They stay the same after set.
  18. Midnighters

    Return player object from server

    I guess I didn't put much thought into my example, but is there really not a cleaner way of doing so?
  19. Midnighters

    Removing stanima?

    They're more like casual milsim if even. However, I don't think it's wise to recommend MCC for everything as it's kind of a mess after a while.
  20. Midnighters

    Removing stanima?

    why is this a loop? These are all setter commands and don't need to be updated more than once.
  21. Midnighters

    How many soldiers can form a squad

    don't forget snakes and dogs.
  22. Midnighters

    ai dive bomb in vtol

    "Legacy Feature"
×