ACE3/addons/maptools/functions/fnc_copyMapReceiveMarkers.sqf

25 lines
477 B
Plaintext
Raw Normal View History

/*
2015-03-24 04:18:00 +00:00
* Author: esteldunedain
2015-01-16 23:13:26 +00:00
* Copy recieved markers to map
*
2015-04-07 20:01:44 +00:00
* Arguments:
* 0: Array of markers to copy <ARRAY>
*
* Return value:
2015-04-07 20:01:44 +00:00
* None
*
* Public: No
*/
2015-01-15 21:50:48 +00:00
#include "script_component.hpp"
2015-01-16 23:13:26 +00:00
PARAMS_1(_lineMarkers);
{
2015-04-17 23:13:09 +00:00
private "_marker";
2015-04-07 20:01:44 +00:00
_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;