mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:43:29 +00:00
added condition for adding groups into cot router
This commit is contained in:
@@ -27,6 +27,17 @@ switch (false) do {
|
||||
deleteVehicle _logic;
|
||||
["Nothing selected", "error", "TCP Socket"] call EFUNC(main,notify);
|
||||
};
|
||||
case (!isNull (units _unit)): {
|
||||
GVAR(syncedUnits) = missionNamespace getVariable "armatak_marked_units";
|
||||
|
||||
{
|
||||
GVAR(syncedUnits) pushBack _unit;
|
||||
} forEach (units _unit);
|
||||
|
||||
missionNamespace setVariable ["armatak_marked_units", GVAR(syncedUnits)];
|
||||
|
||||
deleteVehicle _logic;
|
||||
};
|
||||
default {
|
||||
GVAR(syncedUnits) = missionNamespace getVariable "armatak_marked_units";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user