added functions to handle TCP payloads

This commit is contained in:
Valmo Trindade
2025-01-30 01:41:58 -03:00
parent 79bdb3a3fc
commit 70d73ee804
5 changed files with 125 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
// function name: armatak_fnc_extract_human_cot_info
// function author: Valmo
// function description: Gets the information necessary for generating the Human Cursor Over Time
params ["_unit", "_callsign", "_group_name", "_group_role"];
_unit_position = _unit call armatak_fnc_extract_position;
_uuid = _unit call armatak_fnc_extract_uuid;
_human_cot = [_uuid, _unit_position select 0, _unit_position select 1, _unit_position select 2, _callsign, _group_name, _group_role, _unit_position select 3, speed player / 3.6];
"armatak" callExtension ["cot_router:send_human_cot", [_human_cot]];