ACE3/addons/bft_drawing/functions/fnc_editingDraw_editBFT.sqf
2016-09-03 09:35:37 +02:00

29 lines
614 B
Plaintext

/*
* Author: [W] Fett_Li
* Will be Draw Eventhandler for the map when clicked on a blueforcetracking symbol
*
* Arguments:
* -
*
* Return Value:
* -
*
* Public: No
*/
#include "script_component.hpp"
disableSerialization;
params ["_ctrl"];
// Remove Eventhandler
if (count (GVAR(selection) select 1) == 0) exitWith {_ctrl ctrlRemoveEventhandler ["Draw", GVAR(editingDraw_editBFT)]};
// Draw animation, but wait first for the initial zoom
if (ctrlMapAnimDone _ctrl) then {
private _pos = AD_GET_POSITION(GVAR(selection));
_ctrl ctrlMapAnimAdd [0, 0.05, _pos];
ctrlMapAnimCommit _ctrl;
};