ACE3/addons/map/functions/fnc_removeLineMarker.sqf

32 lines
660 B
Plaintext
Raw Normal View History

/*
* Author: CAA-Picard
*
* Remove the line marker
*
* Argument:
* 0: Marker Name (string)
*
* Return value:
* Return
*/
2015-01-15 21:50:48 +00:00
#include "script_component.hpp"
_name = _this select 0;
deleteMarkerLocal _name;
{
if ((_x select 0) == _name) exitWith {
2015-01-15 21:50:48 +00:00
GVAR(drawing_lineMarkers) = GVAR(drawing_lineMarkers) - [_x];
};
2015-01-15 21:50:48 +00:00
} forEach GVAR(drawing_lineMarkers);
2015-01-15 21:50:48 +00:00
if (isServer && GVAR(drawing_syncMarkers)) then {
{
if ((_x select 0) == _name) exitWith {
2015-01-15 21:50:48 +00:00
GVAR(drawing_serverLineMarkers) = GVAR(drawing_serverLineMarkers) - [_x];
publicVariable QGVAR(drawing_serverLineMarkers);
};
2015-01-15 21:50:48 +00:00
} forEach GVAR(drawing_serverLineMarkers);
};