LUA Unit type
Posted: Fri Apr 02, 2021 1:55 pm
how do i identify a unit kind (e.g. Infantry or CapitalShip). I tried a lot and i thought something as the following condition (with or without quotes), but is not working
if unit.type.kind == "Infantry" then
unit.max_strength = 15
end
Is anybody able to help me plz?
if unit.type.kind == "Infantry" then
unit.max_strength = 15
end
Is anybody able to help me plz?