I have this code in my mod
but it does not fire for some reason. The new unit class is in database, game spawns units of this class without problems. Any ideas?
Code:
if pUnit:GetUnitClassType() == GameInfoTypes.UNITCLASS_TEST then
print("custom unit class")
end