Midnighters
Member-
Content Count
894 -
Joined
-
Last visited
-
Medals
Everything posted by Midnighters
-
Mission save script not working over server restart
Midnighters posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
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? -
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
-
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.
- 10 replies
-
Setting up the strategic map module
Midnighters posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
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 -
New Arma 3 server Looking for Devs and Editors
Midnighters replied to Benallan's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Wrong topic. -
[_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.
-
Force vehicle color global
Midnighters replied to Captain Apple's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
https://community.bistudio.com/wiki/Arma_3_Mission_Parameters + GEORGE FLOROSGR 's
-
I saw a video of a ballistic tracer script that showed the projectile with a dot. Where can I find that script?
Midnighters replied to meowcat's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Err... -
I saw a video of a ballistic tracer script that showed the projectile with a dot. Where can I find that script?
Midnighters replied to meowcat's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Errors? Did the debug console return the event handler index properly? Did you execute locally? -
I saw a video of a ballistic tracer script that showed the projectile with a dot. Where can I find that script?
Midnighters replied to meowcat's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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]]; }]; -
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?
-
Return player object from server
Midnighters replied to Midnighters's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes, there is no confusion. Thanks for your feedback pierre -
Return player object from server
Midnighters replied to Midnighters's topic in ARMA 3 - MISSION EDITING & SCRIPTING
{ } forEach playableUnits; //etc -
Return player object from server
Midnighters replied to Midnighters's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Not in the slightest, I was just hoping for something better than that. It's already written so. -
Return player object from server
Midnighters replied to Midnighters's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Was curious if there was a more streamlined process. -
Return player object from server
Midnighters replied to Midnighters's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No I was never using allPlayers, just throwing an example. Thanks for your feedback though -
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.
-
Removing stanima?
Midnighters replied to jordanbache97's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
Return player object from server
Midnighters replied to Midnighters's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I guess I didn't put much thought into my example, but is there really not a cleaner way of doing so? -
here we go again
-
Removing stanima?
Midnighters replied to jordanbache97's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
Removing stanima?
Midnighters replied to jordanbache97's topic in ARMA 3 - MISSION EDITING & SCRIPTING
why is this a loop? These are all setter commands and don't need to be updated more than once. -
How many soldiers can form a squad
Midnighters replied to Angel Heart's topic in ARMA 3 - MISSION EDITING & SCRIPTING
don't forget snakes and dogs. -
ai dive bomb in vtol
Midnighters replied to sabot10.5mm's topic in ARMA 3 - MISSION EDITING & SCRIPTING
"Legacy Feature"