Announcement

Collapse
No announcement yet.

Player Markers

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [GUIDE] Player Markers

    Ever wanted to see players on the map screen?

    Init.sqf
    deleteMarkerLocal _markerobjp;
    [] execVM "marker.sqf";

    "marker.sqf"

    waituntil {(alive player)};

    _unit = leader player;
    _nameP = name _unit;

    _markerobjp = createMarkerLocal [_namep,[0,0]];
    _markerobjp setMarkerShapeLocal "ICON";
    _markerobjp setMarkerTypeLocal "mil_dot";
    _markerobjp setMarkerColorLocal "ColorGreen";
    _markerobjp setMarkerTextLocal _nameP;
    _markerobjp setMarkerSizeLocal [1,1];


    while {alive _unit} do {
    _markerobjp setmarkerdirLocal (getdir _unit);
    _markerobjp setMarkerPosLocal (getPos _unit);
    _markerobjp setMarkerTextLocal _nameP;
    sleep 1;
    };

    TGU Instructor TG Pathfinder

    Former TGU Dean Former ARMA Admin Former Irregulars Officer

    "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

  • #2
    Re: Player Markers

    Code:
    //marktarget.sqf
    //add a marker on the vehicle periodically
    //add to the init of the vehicle nul=[this]execVM "marktarget.sqf";
    
    _unit = bad1;
    _namep = "T1";
    
    //set time before marker appears
    sleep 60;
    
    //the following will place a marker on the vehicle location every time period
    //create marker
    _markerobjp = createMarkerLocal [_namep,[0,0]];
    _markerobjp setMarkerShapeLocal "ICON";
    _markerobjp setMarkerTypeLocal "selector_selectedEnemy";
    _markerobjp setMarkerColorLocal "ColorRed";
    //_markerobjp setMarkerTextLocal "Target";
    _markerobjp setMarkerSizeLocal [1,1];
    
    //place marker on vehicle
    while {alive _unit} do {
    
    //get the position of the vehicle bad1
    _place = (getPos _unit);
    
    //time delay for info to be relayed to team
    sleep 100;
    
    _markerobjp setMarkerPosLocal _place;
    _markerobjp setMarkerTextLocal _nameP;
    
    };
    
    end;
    Last edited by Unkl; 11-19-2012, 03:12 PM.
    |TG-189th| Unkl
    ArmA 3 Game Officer
    Dean of Tactical Gamer University
    189th Infantry Brigade Member
    SUBMIT A RIBBON NOMINATION OR CONTACT AN ARMA ADMIN
    "We quickly advance in the opposite direction and take cover in a house on the SW side of town." - BadStache

    Comment


    • #3
      Re: Player Markers

      Anyway to enable markers for all the units except ONE?
      "Anyone who has never made a mistake has never tried anything new."
      -Einstein

      Comment


      • #4
        Re: Player Markers

        This is easily done. What units do you want to mark? All players but one? You could do it several ways. One is to name all the units and only mark the ones you want, or mark all units with a condition to exclude one of them. I'll have a look when I have my bookmarks handy.
        |TG-189th| Unkl
        ArmA 3 Game Officer
        Dean of Tactical Gamer University
        189th Infantry Brigade Member
        SUBMIT A RIBBON NOMINATION OR CONTACT AN ARMA ADMIN
        "We quickly advance in the opposite direction and take cover in a house on the SW side of town." - BadStache

        Comment

        Connect

        Collapse

        TeamSpeak 3 Server

        Collapse

        Advertisement

        Collapse

        Twitter Feed

        Collapse

        Working...
        X