ACE3/addons/maptools/functions/fnc_copyMapReceiveMarkers.sqf
2015-03-24 01:18:00 -03:00

24 lines
430 B
Plaintext

/*
* Author: esteldunedain
*
* Copy recieved markers to map
*
* Argument:
* 0: Array of markers to copy (Array)
*
* Return value:
* Return
*/
#include "script_component.hpp"
PARAMS_1(_lineMarkers);
{
_marker = _x;
//Add marker if we don't already have it
if (({(_x select 0) == (_marker select 0)} count GVAR(drawing_lineMarkers)) == 0) then {
_marker call FUNC(addLineMarker);
};
} forEach _lineMarkers;