a3web/leoservermod/marker.sqf

29 lines
643 B
Plaintext

leoext_map_markers_information = {
private _info_list = [];
{
private _text = markerText _x;
private _icon_type = markerType _x; // "Empty" == not icon
private _pos = markerPos _x;
private _color = markerColor _x;
private _marker_info = [_text, _icon_type, _color, _pos];
if (_icon_type != "") then {
_info_list pushBack _marker_info;
};
} forEach allMapMarkers;
_info_list;
};
leoext_units_pos = {
private _units_pos = [];
{
private _side = str (side _x);
private _pos = position _x;
private _unit = [_side, _pos];
_units_pos pushBack _unit;
} forEach allUnits;
_units_pos;
};