Results 1 to 3 of 3

Thread: player markers with names

  1. #1
    Staff Sergeant hogmason's Avatar
    Join Date
    Mar 30 2012
    Location
    Newcastle, Australia
    Posts
    398

    player markers with names

    i am wondering if any 1 can help,

    I have found this script floating around google

    Marker.sqf
    Code:
    _temp = _this select 0;
    _varname = vehicleVarName _temp;
    _unit = objnull;
    
    
    createMarkerLocal [_varname, [0,0]];
    _varname setMarkerShape "ICON";
    _varname setMarkerColor "ColorBlack";
    _varname setMarkerSize [1,1];
    _varname setMarkerType "mil_dot";
    
    while {true} do {
        waitUntil {
            call compile format ["_unit = %1",_varname];
            alive _unit;
        };
    
        while {alive _unit} do {
            if (side _unit == west) then {
                _varname setMarkerColor "ColorGreen";
            };
            if (side _unit == east) then {
                _varname setMarkerColor "ColorRed";
            };
            _varname setMarkerDir getDir _unit;
            _varname setMarkerPos getPos _unit;
        
            sleep 0.5;
        };
        _varname setMarkerColor "ColorBlack";
        sleep 5;
    };
    it is called by placing the following in the players unit init.

    Code:
    nul=[this] execVM "HOG scripts\marker.sqf";
    It works fine to show a player marker on the map BUT i am wondering how would i also get the players name to show next to the marker. like in domination and

  2. #2
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    5,700
    You should ask this in mission editing section, not addon editing.

  3. #3
    Staff Sergeant hogmason's Avatar
    Join Date
    Mar 30 2012
    Location
    Newcastle, Australia
    Posts
    398
    Author of the Thread
    cheers mate i saw the ARMA 2 & OA : ADDONS - Configs & Scripting and diddnt think twice bloody tricked me thanks for pionting that out. re-posting now

Similar Threads

  1. Disabling player markers
    By Petko in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Mar 13 2011, 00:11
  2. Allowing player markers on map?
    By Acelondoner in forum ARMA 2 & OA : TERRAIN - (Visitor)
    Replies: 3
    Last Post: Jul 17 2010, 14:15
  3. Placement of Markers to Output player names
    By Fcn in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 0
    Last Post: Jul 19 2009, 11:46
  4. Domination and player/enemy markers
    By neofit in forum ARMA 2 & OA - MULTIPLAYER
    Replies: 0
    Last Post: Jul 16 2009, 10:41
  5. Player markers and names on maps in game
    By RN Malboeuf in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 11
    Last Post: Jan 11 2005, 13:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •