mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
518010be36
- mapfx moved inside map - everything related to map tools and drawing moved to it's own pbo called ace_maptools Also fixed a couple of bugs in BFT - Only a single marker was being drawn - The BFT_HideAi parameter had the opposite effect
32 lines
660 B
Plaintext
32 lines
660 B
Plaintext
/*
|
|
* Author: CAA-Picard
|
|
*
|
|
* Remove the line marker
|
|
*
|
|
* Argument:
|
|
* 0: Marker Name (string)
|
|
*
|
|
* Return value:
|
|
* Return
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
_name = _this select 0;
|
|
|
|
deleteMarkerLocal _name;
|
|
{
|
|
if ((_x select 0) == _name) exitWith {
|
|
GVAR(drawing_lineMarkers) = GVAR(drawing_lineMarkers) - [_x];
|
|
};
|
|
} forEach GVAR(drawing_lineMarkers);
|
|
|
|
if (isServer && GVAR(drawing_syncMarkers)) then {
|
|
{
|
|
if ((_x select 0) == _name) exitWith {
|
|
GVAR(drawing_serverLineMarkers) = GVAR(drawing_serverLineMarkers) - [_x];
|
|
publicVariable QGVAR(drawing_serverLineMarkers);
|
|
};
|
|
} forEach GVAR(drawing_serverLineMarkers);
|
|
};
|