Search the Community
Showing results for tags 'deaths'.
Found 1 result
kill death ratio calculator
doomnet posted a topic in ARMA 3 - MISSION EDITING & SCRIPTINGYeah i know some of you guys here around will laugh me out for this newbie stupid question But anyway here i go : i have stat system on the server, it counts deaths, kills, xp, etc..... now my question is how do i obtain kill/death ratio from these stats ? i know k/d ratio is kills divide by deaths to obtain kill death ratio, how to calculate it in sqf file what is the code to put in here ? //This converts the string to an array _get = call compile _get; //only select the inner array, throw away this outer array shell _get = _get select 0; _get = _get select 0; _string = _get select 0; _xp = parseNumber _string; _string = _get select 1; _kills = parseNumber _string; _string = _get select 2; _deaths = parseNumber _string; player_stats_add = [_xp,_kills,_deaths]; owner _unit publicVariableClient "player_stats_add"; player_stats_got = 1; owner _unit publicVariableClient "player_stats_got"; or am i wrong ? is it elsewhere ? or maybe can i make a new sqf file ?