Use LOG commands to print debug text to the game.log.
Like:
if unit:IsInCategory('TRANSPORT') and unit:IsInCategory('TECH3') then
LOG('Found Unit with category TRANSPORT*TECH3')
if Ukills >= unit:GetBlueprint().Veteran.Level5 then
To Check For mobil units, you can use
unit:IsInCategory('MOBILE')
units have layer category, so you can ask for land air or naval units:
unit:IsInCategory('LAND')
unit:IsInCategory('AIR')
unit:IsInCategory('NAVAL')
random Examples:
MOBILE * LAND * INDIRECTFIRE * DIRECTFIRE
for land units that can attack other land units
MOBILE * LAND * ANTIAIR
for mobile Anti Air
MOBILE * AIR * HIGHALTAIR
for ASF
MOBILE * AIR * TRANSPORTFOCUS
for Air Transporter
(if unit:IsInCategory('MOBILE') and unit:IsInCategory('AIR') and unit:IsInCategory('TRANSPORTFOCUS') then
)