Hi, just played around with the yaml files a bit but had no real success, so I'm asking, how do I make let's say the heavy tank shoot at inf with an mg but at vehicles and buildings with the cannons? I added

But then found out ValidTargets and InvalidTargets is only for autotargetting and it now shoots with both weapons at the same time. I looked at how the Mammoth does it but couldn't find anything out either. Thx

I also tried to put the vehicles into vehicles.yaml and weapons into weapons.yaml but I think the point is, when I try to use m60mgTANK it doesn't let me play the map. Perhaps vehicles.yaml doesn't know weapons.yaml? But it didn't work in the same file either.

EDIT: Tried to put the stuff into a vehicles.yaml and weapons.yaml in my oramap file without a rules.yaml. It simply ignores the changes now.

EDIT: Ok so if I put it all in rules.yaml, it won't let me launch, if I put it into vehicles.yaml and weapons.yaml, the changes don't take effect. So far I've only succeeded in adding secondary weapons but not the behaviour I intend. I did follow the tutorial so this is weird.

That yaml looks correct to me, so I'm not certain what goes wrong. IIRc we haven't shipped the OpenRA.Utility ra --resolved-rules/--resolved-weapons though in the last release (does worth a check though) which would help debugging here a lot. You coulda inherit the actual weapons anyway and just override InvalidTargets, allowing you to just go