mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:23:28 +00:00
change if hell to switchcase on 3denCoremodule config func
This commit is contained in:
@@ -31,19 +31,21 @@ if (isServer) exitWith {
|
|||||||
|
|
||||||
{
|
{
|
||||||
_objectType = _x call BIS_fnc_objectType;
|
_objectType = _x call BIS_fnc_objectType;
|
||||||
if ((_objectType select 0) == "Soldier") then {
|
switch (true) do {
|
||||||
_callsign = [_x] call armatak_fnc_extract_unit_callsign;
|
case ((_objectType select 0) == "Soldier"): {
|
||||||
_group_name = [group _x] call armatak_fnc_extract_group_color;
|
_callsign = [_x] call armatak_fnc_extract_unit_callsign;
|
||||||
_group_role = [_x] call armatak_fnc_extract_group_role;
|
_group_name = [group _x] call armatak_fnc_extract_group_color;
|
||||||
|
_group_role = [_x] call armatak_fnc_extract_group_role;
|
||||||
|
|
||||||
[_x, _callsign, _group_name, _group_role] call armatak_fnc_send_eud_cot;
|
[_x, _callsign, _group_name, _group_role] call armatak_fnc_send_eud_cot;
|
||||||
[_x] call armatak_fnc_send_digital_pointer_cot;
|
[_x] call armatak_fnc_send_digital_pointer_cot;
|
||||||
};
|
};
|
||||||
if ((_objectType select 0) == "Vehicle") then {
|
case ((_objectType select 0) == "Vehicle"): {
|
||||||
_atak_type = [_x] call armatak_fnc_extract_role;
|
_atak_type = [_x] call armatak_fnc_extract_role;
|
||||||
_callsign = [_x] call armatak_fnc_extract_marker_callsign;
|
_callsign = [_x] call armatak_fnc_extract_marker_callsign;
|
||||||
|
|
||||||
[_x, _atak_type, _callsign] call armatak_fnc_send_marker_cot;
|
[_x, _atak_type, _callsign] call armatak_fnc_send_marker_cot;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
if (unitIsUAV _x) then {
|
if (unitIsUAV _x) then {
|
||||||
[_x] call armatak_fnc_send_drone_cot;
|
[_x] call armatak_fnc_send_drone_cot;
|
||||||
|
|||||||
Reference in New Issue
Block a user