Love this debug monitor, simple and easy to install however...
How can I make this Debug Toggle?
It's always on, but i'd much rather have it toggle.
Any help would be appreciated.
custom_monitor.sqf (drop this into root mission.pbo)
init.sqf (this code goes at the very bottom)
How can I make this Debug Toggle?
It's always on, but i'd much rather have it toggle.
Any help would be appreciated.
custom_monitor.sqf (drop this into root mission.pbo)
Code:
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
while {custom_monitor} do
{
_humanity = player getVariable["humanity",0];
_headShots = player getVariable["headShots",0];
hintSilent parseText format ["
<t size='1' font='Bitstream' align='left' color='#EE2C2C'>Restart:</t><t size='1' font='Bitstream'align='right'color='#EE2C2C'>%7 min</t><br/>
<t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%1 Days</t><br/>
<t size='1'font='Bitstream'align='left'>Blood:</t><t size='1'font='Bitstream'align='right'>%2</t><br/>
<t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
<t size='1'font='Bitstream'align='left'>Zombies (alive/total):</t><t size='0.95'font='Bitstream'align='right'>%5/%4</t><br/>
<t size='1'font='Bitstream'align='left'>FPS:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
",(dayz_Survived),r_player_blood,round _humanity,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps),(180-(round(serverTime/60)))];
sleep 1;
};
init.sqf (this code goes at the very bottom)
Code:
[] ExecVM "custom_monitor.sqf";