mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 23:13:28 +00:00
28 lines
614 B
Plaintext
28 lines
614 B
Plaintext
// function name: armatak_fnc_extract_drone
|
|
// function author: Valmo
|
|
// function description: Gets the drone information for the CoT Router
|
|
|
|
params["_drone"];
|
|
|
|
private _atak_role = "a-f-A";
|
|
private _atak_callsign = [_unit] call armatak_fnc_extract_callsign;
|
|
|
|
switch (side _drone) do {
|
|
case "WEST": {
|
|
_atak_role = "a-f-A-M-F-Q"
|
|
};
|
|
case "EAST": {
|
|
_atak_role = "a-h-A-M-F-Q"
|
|
};
|
|
case "INDEPENDENT": {
|
|
_atak_role = "a-n-A-M-F-Q"
|
|
};
|
|
case "CIVILIAN": {
|
|
_atak_role = "a-f-A-C"
|
|
};
|
|
default {
|
|
_atak_role = "a-f-A-M-F-Q"
|
|
};
|
|
};
|
|
|
|
_cot = [_drone, _atak_role, _atak_callsign] call armatak_fnc_send_marker_cot; |