yamajin82 10 Posted September 5, 2013 Hello, I did some digging in the forums and I found this old thread about a civilian kill counter: http://forums.bistudio.com/showthread.php?109166-Civilian-kill-Counter I tried all the varieties of what is shown in the thread and got it to work in single player but when I save the mission as MP it no longer works. I am a total noob when it comes to this kind of thing so can anyone tell me if there is any reason why this shouldn't work in Arma 3 Multiplayer? Here is essentially what is in the thread that I had working in SP: init.sqf execVM "check_for_civ_death.sqf";// run on server side check_for_civ_death.sqf MC_DeadCivilianCount = 0; MC_DeadCivilianLimit = 10;// limit amount of civ casualties allowed MC_EndMission = false; [] spawn { waituntil {MC_EndMission}; playSound "start"; cuttext ["Game over. Civilian casualties are at an unacceptable level. Hearts and minds, boys...","PLAIN",2]; sleep 10; endmission "END2"; }; MC_fnc_deadCivilians = { hint parseText format["<t color=""#80FF00"">Civilians dead: %1, Watch Your Fire 10 is the limit.</t>"]; if (_this >= MC_DeadCivilianLimit) then { MC_EndMission = true; publicvariable "MC_EndMission"; }; }; MC_eh_killed = { private "_side"; _side = side (_this select 1); if (_side == WEST) then { MC_DeadCivilianCount = MC_DeadCivilianCount + 1; publicvariable "MC_DeadCivilianCount"; if isdedicated then { if (_this >= MC_DeadCivilianLimit) then { MC_EndMission = true; publicvariable "MC_EndMission"; }; } else { MC_DeadCivilianCount call MC_fnc_deadCivilians; }; }; }; if isserver then { { if (side _x == Civilian && _x iskindof "Man") then { _x addEventHandler ["killed", MC_eh_killed]; }; } foreach allunits; } else { "MC_DeadCivilianCount" addpublicvariableeventhandler { (_this select 1) call MC_fnc_deadCivilians }; }; [] spawn { waitUntil{!isNil "BIS_fnc_init"}; waituntil {!isnil "BIS_alice_mainscope"}; waituntil {!isnil "bis_fnc_variablespaceadd"}; [bIS_alice_mainscope,"ALICE_civilianinit",[{_this addEventHandler ["killed", MC_eh_killed]}]] call bis_fnc_variablespaceadd; }; Share this post Link to post Share on other sites