mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
614 B
Plaintext
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;
|
|
};
|