Well, which criteria do you use to assing the console? unit name? rank? unit type?
From a BIS thread about the console, who has a Laser Designator, has the console. This might be a good criteria:
// Add to your init.sqf
[] spawn
{
private["_acidx1", "_acidx2", "_unit", "_veh"];
_acidx1 = -1;
_acidx2 = -1;
while {true} do
{
waitUntil {("Laserdesignator" in weapons player) && (alive player)};
_acidx1 = player addAction ["Console: Air support", "mando_airsupportdlg.sqf"];
while {("Laserdesignator" in weapons player) && (alive player)} do
{
_unit = player;
if (vehicle _unit != _unit) then
{
_veh = vehicle _unit;
_acidx2 = vehicle _unit addAction ["Console: Air support", "mando_airsupportdlg.sqf"];
waitUntil {(vehicle _unit == _unit) || (!alive _unit)};
_veh removeAction _acidx2;
};
Sleep 1;
};
_unit removeAction _acidx1;
};
};