darksoon Posted February 16, 2014 Report Share Posted February 16, 2014 hey guys, i search a solution to find out a easy system to add AI or bus routes waypoints. is it possible to show my player ingame world coords in the debug monitor so i can use it in the scripts? greets darks p.s.: i use the napf map Link to comment Share on other sites More sharing options...
0 WGC GeekGarage Posted February 17, 2014 Report Share Posted February 17, 2014 The function is to show map coords (mapGridPosition getPos player) and (getPosASL player) to show game coords in X,Y,Z and to show it use some thing like <t size='1'font='Bitstream'align='center'>%23</t><br/> change %23 to the correct number Link to comment Share on other sites More sharing options...
0 darksoon Posted February 17, 2014 Author Report Share Posted February 17, 2014 ok when i used that my debug monitor is broken and doesent work anymore <t size='1'font='Bitstream'align='center'>%14</t><br/>" _gpsposi = (getPosASL player); //14 || or _gpsposi = (mapGridPosition getPos player) //14 || - same with no working debug monitor Link to comment Share on other sites More sharing options...
0 WGC GeekGarage Posted February 17, 2014 Report Share Posted February 17, 2014 post the whole debug monitor code and i will fix it for you or try and remove the " from the display code Link to comment Share on other sites More sharing options...
0 darksoon Posted February 17, 2014 Author Report Share Posted February 17, 2014 fnc_debug = { j0k3r5_stats = true; while {j0k3r5_stats} do { _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture')); _nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750]; _textCity = "Wilderness"; if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)}; if (player == vehicle player) then { _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture')); } else { _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture')); }; _timeleft= _combattimeout-time; _kills = player getVariable["zombieKills",0]; _killsH = player getVariable["humanKills",0]; _killsB = player getVariable["banditKills",0]; _humanity = player getVariable["humanity",0]; _headShots = player getVariable["headShots",0]; _zombies = count entities "zZombie_Base"; _zombiesA = {alive _x} count entities "zZombie_Base"; _posii = (getPosASL player); hintSilent parseText format [ " <t size='1.3' font='Bitstream' align='center' color='#DDDDDD'>c4n DayZ Epoch</t> <br/> <t size='1.05' font='Bitstream' align='center' color='#DDDDDD'>%9 Players Online</t> <br/> <br/> <t size='1.10' font='Bitstream' color='#5882FA'>%14</t><br/> <t size='1' font='Bitstream' align='center' color='#DDDDDD'>Location: %11</t> <br/> <br/> <t size='1' font='Bitstream' align='left'>Zombies Killed: </t> <t size='1' font='Bitstream' align='right'>%5</t><br/> <t size='1' font='Bitstream' align='left'>Headshots: </t> <t size='1' font='Bitstream' align='right'>%6</t><br/> <t size='1' font='Bitstream' align='left'>Murders: </t> <t size='1' font='Bitstream' align='right'>%3</t><br/> <t size='1' font='Bitstream' align='left'>Bandits Killed: </t> <t size='1' font='Bitstream' align='right'>%4</t><br/> <t size='1' font='Bitstream' align='left'>Zeds Alive/Total: </t> <t size='1' font='Bitstream' align='right'>%13/%12</t><br/> <br/> <t size='1.05' font='Bitstream' align='left'>Humanity: </t> <t size='1.05' font='Bitstream' align='right'>%2</t><br/> <t size='1.05' font='Bitstream' align='left' color='#C70000'>Blood: </t> <t size='1.05' font='Bitstream' align='right' color='#C70000'>%1</t><br/> <br/> <t size='1' font='Bitstream' align='center' color='#DDDDDD'>www.c4-network.de</t><br/> <t size='1' font='Bitstream' align='center' color='#DDDDDD'>TS3: ts.c4-network.de</t><br/> <t size='1'font='Bitstream'align='center'>%14</t><br/>" <br/> ", r_player_blood, //1 round _humanity, //2 _killsH, //3 _killsB, //4 _kills, //5 _headShots, //6 (dayz_Survived), //7 (239-(round(serverTime/60))), //8 change the 180 to suit your server mins for restarts (count playableUnits), //9 Player Online _pic, //10 _textCity, //11 count entities "zZombie_Base", //12 {alive _x} count entities "zZombie_Base", //13 dayz_playerName, //14 _posii //15 ]; sleep 5; }; }; [] spawn fnc_debug; Link to comment Share on other sites More sharing options...
0 TheVampire Posted February 17, 2014 Report Share Posted February 17, 2014 When you use getPos it makes an array that is a position. Do this instead. _posii = str(getPosASL player); That will make it a string it can add to the hint. Link to comment Share on other sites More sharing options...
0 NAIL Posted February 17, 2014 Report Share Posted February 17, 2014 When you use getPos it makes an array that is a position. Do this instead. _posii = str(getPosASL player); That will make it a string it can add to the hint. works well, but for lack of space, how can I omit the altitude (3rd number)? Link to comment Share on other sites More sharing options...
0 TheVampire Posted February 17, 2014 Report Share Posted February 17, 2014 Try this. _posii = str(((getPosASL player) select 0), ((getPosASL player) select 1)); Link to comment Share on other sites More sharing options...
0 WGC GeekGarage Posted February 17, 2014 Report Share Posted February 17, 2014 fnc_debug = { j0k3r5_stats = true; while {j0k3r5_stats} do { _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture')); _nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750]; _textCity = "Wilderness"; if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)}; if (player == vehicle player) then { _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture')); } else { _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture')); }; _timeleft= _combattimeout-time; _kills = player getVariable["zombieKills",0]; _killsH = player getVariable["humanKills",0]; _killsB = player getVariable["banditKills",0]; _humanity = player getVariable["humanity",0]; _headShots = player getVariable["headShots",0]; _zombies = count entities "zZombie_Base"; _zombiesA = {alive _x} count entities "zZombie_Base"; _posii = str(((getPosASL player) select 0), ((getPosASL player) select 1)); hintSilent parseText format [" <t size='1.3' font='Bitstream' align='center' color='#DDDDDD'>c4n DayZ Epoch</t><br/> <t size='1.05' font='Bitstream' align='center' color='#DDDDDD'>%9 Players Online</t><br/> <br/> <t size='1.10' font='Bitstream' color='#5882FA'>%14</t><br/> <t size='1' font='Bitstream' align='center' color='#DDDDDD'>Location: %11</t><br/> <br/> <t size='1' font='Bitstream' align='left'>Zombies Killed: </t> <t size='1' font='Bitstream' align='right'>%5</t><br/> <t size='1' font='Bitstream' align='left'>Headshots: </t> <t size='1' font='Bitstream' align='right'>%6</t><br/> <t size='1' font='Bitstream' align='left'>Murders: </t> <t size='1' font='Bitstream' align='right'>%3</t><br/> <t size='1' font='Bitstream' align='left'>Bandits Killed: </t> <t size='1' font='Bitstream' align='right'>%4</t><br/> <t size='1' font='Bitstream' align='left'>Zeds Alive/Total: </t> <t size='1' font='Bitstream' align='right'>%13/%12</t><br/> <br/> <t size='1.05' font='Bitstream' align='left'>Humanity: </t> <t size='1.05' font='Bitstream' align='right'>%2</t><br/> <t size='1.05' font='Bitstream' align='left' color='#C70000'>Blood: </t> <t size='1.05' font='Bitstream' align='right' color='#C70000'>%1</t><br/> <br/> <t size='1' font='Bitstream' align='center' color='#DDDDDD'>www.c4-network.de</t><br/> <t size='1' font='Bitstream' align='center' color='#DDDDDD'>TS3: ts.c4-network.de</t><br/> <t size='1'font='Bitstream'align='center'>%14</t>", r_player_blood, //1 round _humanity, //2 _killsH, //3 _killsB, //4 _kills, //5 _headShots, //6 (dayz_Survived), //7 (239-(round(serverTime/60))), //8 change the 180 to suit your server mins for restarts (count playableUnits), //9 Player Online _pic, //10 _textCity, //11 count entities "zZombie_Base", //12 {alive _x} count entities "zZombie_Base", //13 dayz_playerName, //14 _posii //15 ]; sleep 5; }; }; [] spawn fnc_debug; Just in case you don't have it working yet Link to comment Share on other sites More sharing options...
0 darksoon Posted February 17, 2014 Author Report Share Posted February 17, 2014 hm i replace the code with my debug but when i join the server, there is no debug monitor :( Link to comment Share on other sites More sharing options...
Question
darksoon
hey guys,
i search a solution to find out a easy system to add AI or bus routes waypoints. is it possible to show my player ingame world coords in the debug monitor so i can use it in the scripts?
greets
darks
p.s.: i use the napf map
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now