I just took a break and modded some ZH again after long times , and now , i seem to forgot how do i make a weapon that will only target INFANTRY , and another weapon that will target only VEHICLES STRUCTURES and maybe HUGE_VEHICLES (baiscally everything else except infantry)
I Already found out that this can be made via damage types , so for infantry SNIPER , but I can't make the other weapon which uses JET_MISSILES to NOT target infantry , I have made PrefferedAgainst in weaponset but it seems to not function strictly, it still attacks infantry with missiles when there aren vehicles around.
And there some problem , the jet's don't GUARD properly , after they re-arm they don't go guarding again they just stay in airfield , i have boiled down that maybe PreferredAgainst entry in weaponset makes this bug , will see.
I also made commandbuttons to switch weapon slots , it did function , but it was akward to change all the time , and there is no option to use both slots ( Weaponslot = PRIMARY SECONDARY ) does not work it uses only the first option.
AutoChooseSources seem to not have effect on guard bug.
PreferredAgainst = PRIMARY VEHICLE HUGE_VEHICLE STRUCTURE AIRCRAFT
PreferredAgainst = SECONDARY INFANTRY
I see a potential workaround via damagetypes , and armor , but i will have to edit EVERY infantry's armor to be invurnable to JET_MISSILES. That would affect all planes with jet missiles then hmm , not actually have time to mod the whole game im just testing stuff a bit with one unit at a time hehe.