Jump to content
Sign in to follow this  
Lazarus

player marker text

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

Not a config scripting issue, but a mission scripting issue, and setMarkerText is the command you're looking for. Other relevant commands are name and format.

The script to look for in Domination is x_client\x_marker.sqf, but kinda complex due to all the options available.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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";

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×