2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-03-24 04:18:00 +00:00
|
|
|
* Author: esteldunedain
|
2015-01-11 16:42:31 +00:00
|
|
|
* Remove the line marker
|
|
|
|
*
|
2015-04-07 20:01:44 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: Marker Name <STRING>
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Return
|
|
|
|
*/
|
|
|
|
|
2015-01-15 21:50:48 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-18 02:51:40 +00:00
|
|
|
params ["_name"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-04-07 20:01:44 +00:00
|
|
|
deleteMarkerLocal _name;
|
2015-01-11 16:42:31 +00:00
|
|
|
{
|
2015-04-07 20:01:44 +00:00
|
|
|
if ((_x select 0) == _name) exitWith {
|
|
|
|
GVAR(drawing_lineMarkers) = GVAR(drawing_lineMarkers) - [_x];
|
|
|
|
};
|
2015-01-15 21:50:48 +00:00
|
|
|
} forEach GVAR(drawing_lineMarkers);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-15 21:50:48 +00:00
|
|
|
if (isServer && GVAR(drawing_syncMarkers)) then {
|
2015-04-07 20:01:44 +00:00
|
|
|
{
|
|
|
|
if ((_x select 0) == _name) exitWith {
|
|
|
|
GVAR(drawing_serverLineMarkers) = GVAR(drawing_serverLineMarkers) - [_x];
|
|
|
|
publicVariable QGVAR(drawing_serverLineMarkers);
|
|
|
|
};
|
|
|
|
} forEach GVAR(drawing_serverLineMarkers);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|