ACE3/addons/maptools/functions/fnc_removeLineMarker.sqf

31 lines
681 B
Plaintext
Raw Normal View History

/*
2015-03-24 04:18:00 +00:00
* Author: esteldunedain
* Remove the line marker
*
2015-04-07 20:01:44 +00:00
* Arguments:
* 0: Marker Name <STRING>
*
* 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-04-07 20:01:44 +00:00
deleteMarkerLocal _name;
{
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-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);
};