I'm not sure.
The hotkey takes us to:
['acu_select_cg'] = {action = 'UI_Lua import("/lua/keymap/misckeyactions.lua").ACUSelectCG()',
category = 'selection', order = 33,},
['acu_append_cg'] = {action = 'UI_Lua import("/lua/keymap/misckeyactions.lua").ACUAppendCG()',
category = 'selection', order = 34,},
Which takes us to:
local lastACUSelectionTime = 0
function ACUSelectCG()
local curTime = GetSystemTimeSeconds()
local diffTime = curTime - lastACUSelectionTime
if diffTime > 1.0 then
ConExecute('UI_SelectByCategory +nearest COMMAND')
else
ConExecute('UI_SelectByCategory +nearest +goto COMMAND')
end
lastACUSelectionTime = curTime
end
function ACUAppendCG()
local selection = GetSelectedUnits() or {}
ACUSelectCG()
AddSelectUnits(selection)
end
And that contains the +goto
command, which then maps your camera to your selection (the commander). But I don't know how to set its arguments. Maybe @Strogo knows more about it.