Jump to content

ATM Icons on Map


DrScandalous

Recommended Posts

I'm sure there's a way to do it with a script.

private["_ATM"];

_ATM = ["ATM_covered", "ATM_uncovered", "Phonebooth_clean", "Phonebooth_tagged"];  //NOT actual classnames

forEach "_ATM" do {

"some cool code to get all the ATM positions on the map";

createMarker ["ATM" , ["_xposATM","_yposATM"]];
setMarkerShape "ICON";
setMarketType "DOT";
};

I'm no coder, but that's the basic idea.  Should be doable.  

Link to comment
Share on other sites

I used

{
    _obj = str _x;
    if ({(_obj find _x) != -1} count ["atm_01_f.p3d","phonebooth_01_f.p3d","phonebooth_02_f.p3d","atm_02_f.p3d"] > 0) then {
        _marker = createMarkerLocal [_obj, position _x];
        _marker setMarkerShapeLocal "ICON";
        _marker setMarkerTypeLocal "mil_dot";
        _marker setMarkerColorLocal "ColorGreen";
        _marker setMarkerSizeLocal [0.7,0.7];
    };
} count nearestObjects[player, [], (worldName call BIS_fnc_mapSize)];

to make some maps, seen in the editor, but I imagine you could adapt this to make it work on a players map on the server.

 

Note: this only works where the atms/phonebooths are included on the default map (i.e. Altis) and won't work on custom ones added.

Link to comment
Share on other sites

i done it like this
 
//Elektro
_this = createMarker ["atm3", [8168.665, 9027.165, -0.072704464]];
_this setMarkerText "ATM";
_this setMarkerType "Dot";
_this setMarkerBrush "Solid";
_marker_1300 = _this;
 
//Guglovo
_this = createMarker ["ATM2", [5759.5435, 7466.9927, -0.069170587]];
_this setMarkerText "ATM";
_this setMarkerType "Dot";
_this setMarkerBrush "Solid";
_marker_1700 = _this;
 
place this in your init
[] execVM "Buildings\markers.sqf";
Link to comment
Share on other sites

Warning if you do this with all the icons now on the 0.3 release map your map will be a clutterfest.... Would be cooler if there was code that would add things to a personal map if you came across them - say the maps empty at the start of a fresh spawn but as you locate things they add markers on such as traders and atms. Or if it was optional for players to remove certain icons from their map if they didn't want the clutter

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...