mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:33:29 +00:00
added functions to handle TCP payloads
This commit is contained in:
30
addons/main/functions/api/fn_send_drone_cot.sqf
Normal file
30
addons/main/functions/api/fn_send_drone_cot.sqf
Normal file
@@ -0,0 +1,30 @@
|
||||
// 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 = getText(configFile >> "CfgVehicles" >> typeOf _drone >> "displayName");
|
||||
|
||||
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_extract_marker_cot_info;
|
||||
|
||||
"armatak" callExtension ["cot_router:send_marker_cot", [_cot]];
|
||||
Reference in New Issue
Block a user