View Full Version : player marker text
On some servers I have observed that not only do your players icons show on the map they also show the players name as well. I am assuming this is a config setting of some sort. Could anybody tell me what setting needs to be changed in order to get this to work.
Thanx in advance
Laz
binkster
Jul 1 2009, 23:08
this is scripting for that mission that is played.. If your wanting to use this for your own mission I suggest opening up the mission that you played that had this and find the script and see if you can use it.
braathena9
Jul 2 2010, 07:37
I would like this feature as well. Like the one in domination with the player names on the map. But in the domination pbo file there are over 500 script files. It would certainly be a lot easier if someone knew something about this. Ie. wich files to check in, or prefferably a script.
Any pointers would be appreciated :)
CarlGustaffa
Jul 3 2010, 07:43
Not a config scripting issue, but a mission scripting issue, and setMarkerText (http://community.bistudio.com/wiki/setMarkerText) is the command you're looking for. Other relevant commands are name (http://community.bistudio.com/wiki/name) and format (http://community.bistudio.com/wiki/format).
The script to look for in Domination is x_client\x_marker.sqf, but kinda complex due to all the options available.
braathena9
Jul 3 2010, 21:34
Ok, thanks CarlGustaffa! I will try to read up on the subject
braathena9
Jul 4 2010, 07:55
Ok, i have read the links you gave me CarlGustaffa but im still pretty lost. Is it hard to compile a MP script that shows player names on the map?
Im making my own version of the domination script and one of the few things im missing is player markers with names :) Have searched up and down for it but no luck
On some servers I have observed that not only do your players icons show on the map they also show the players name as well. I am assuming this is a config setting of some sort. Could anybody tell me what setting needs to be changed in order to get this to work.
Thanx in advance
Laz
The code below will attach the players nik next to the players name on the map on a dedicated/multiplayer server but, the 1st time that you die and respawn, it wont work anymore and I am trying to get it to work after respawn.
;//This code places the players nik next to the player position on the map.
hint "code started";
_unit = p2;
_pos = getPos _unit;
_markertxt = format [" - %1", name(_unit)];
_markerstr = createMarker [_markertxt,_pos];
_markerstr setMarkerShape "ICON";
_markerstr setMarkerType "mil_dot";
_markerstr setMarkerSize [0.5,0.5];
_markerstr setMarkerColor "ColorRed";
_markerstr setMarkerText _markertxt;
;// Loop with 1 sec delay while updating the player map marker position
#loop
~1
_markerstr setMarkerPos getPos _unit;
? !(alive _unit) : goto "end";
hint "loop updating";
goto "loop"
#end
hint "loop ended";
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.