Setting native tech in activity
For example set native tech as dummy:
Code:
local gui = self:GetBuyGUI(0) -- Argument is a team
local id = PresetMan:GetModuleID("Dummy")
if id > -1 and gui then
print ("Set native tech to: "..id)
gui:SetNativeTechModule(id)
end
This will open dummy items in buy GUI and set high prices on foreign tech items.
UPD:
Yeah, right, wasted a couple of hours staring at CortexCommand.exe to figure this instead of looking into Metafight.lua... What an idiot...