not currently block commands, it only affects the rendering. To block
commands, you can use AllowCommand() in LuaRules (even if I add
real client-side blocking based on "disabled", a synced check should
still be provided in LuaRules).

Test code (from LuaRules/main.lua):
Code: Select all
local cmdDescs = Spring.GetUnitCmdDescs(unitID)
for i = 1, cmdDescs.n do
Spring.EditUnitCmdDesc(unitID, i, {
disabled = (math.floor(math.mod(i, 4)) == 0)
})
end