-- add unit classes in type order
for _, type in ipairs(typeList) do
if side[type] and (not teamItems or not teamItems[name] or teamItems[name][type]) then
AddUnitClass(team, side[type][1], side[type][2], side[type][3])
end
end
-- add hero class if available
if side[hero] then
AddHeroClass(side[hero])
end
end
end
Its so you can have hero="inf_some_heroclass", in your SetupTeams section along with the rest of them soldier="", sniper="", etc...
There is a bug/missing feature in the v1.3 patch. If you use that SetupTeams syntax or the function directly, that unit won't be registered for the FakeConsole commands. Meaning commands using SetClassProperty won't effect any units added with AddHeroClass. I posted about it in the v1.3 topic a few weeks ago.
[RDH]Zerted wrote:Its so you can have hero="inf_some_heroclass", in your SetupTeams section along with the rest of them soldier="", sniper="", etc...
There is a bug/missing feature in the v1.3 patch. If you use that SetupTeams syntax or the function directly, that unit won't be registered for the FakeConsole commands. Meaning commands using SetClassProperty won't effect any units added with AddHeroClass. I posted about it in the v1.3 topic a few weeks ago.