Changing AA Value Against Strategic Bombers
-
yea it doesn't fight in normal combat. the "-1" is so it'll shoot at all planes that try to bomb it.
Sorry, I confused "maxAAattacks" with "maxRoundsAA". It happens to the worst of us.
Basically, it is another Fctry that I want the AA to fire at 2, not 1.
And that is what it does, just add "isInfrastructure".
@beelee there is a factory major in the same territory. Because they have different "typeAA" both are shooting during the SBR attack. Remove "typeAA".
Cheers...
-
Right on. I'll give it a try. I just assumed since the Fctry wasn't being targeted it wouldn't fire.

@thedog yea it's not a combat unit. Just a different type of Fctry. I was trying to skirt the auto defend at 1 AA, is why I added the other stuff.
Edit
removed "typeAA" and the just the AA fire at 1 shot. I'm thinking the Fctrys/Infrastructure are just hardwired to shoot at 1 for AA defense. -
From the PoS2:
isAAforBombingThisUnitOnly values: allows this unit to be an AA gun only when this unit is directly attacked by a strategic bombing raid (currently defends against all strategic bombing attacks in this territory, not just against this unit). it will not defend against a normal attack.With different "typeAA" both units defend. If they are the same, then the one with the 'better' attack will fire.
Cheers...
-
removed "typeAA" and the just the AA fire at 1 shot. I'm thinking the Fctrys/Infrastructure are just hardwired to shoot at 1 for AA defense.
Your factories only have "isAAforBombingThisUnitOnly" set. There is no "typeAA", so everything is set to their default settings. It is not hardwired, only defaults, and defaults can be changed.
Right now it shoots at 1 and then a second round at 2. So far, the closest I've come, is to make the second round of AA fire at 1.
This is your first comment. What was stated here was wrong. The Factory_Major was defending at 1 and the Research_Facility was defending at 2. Both units were shooting because their "typeAA" were different. Remove "typeAA" from the Research_Facility, then only it will fire, even if the Factory_Major is attacked, only the Research_Facility will defend at 2.
Cheers...
-
yea I wasn't real clear with the first comment

What happens is what I posted above with the screenshots.
1 round of AA Fire at 1 defending against a SBR attack.
Casualties are taken.2nd round of AA fire takes place defending at 2 against a SBR attack.
SBR attack then continues if any Bmbrs survive.
What I want to happen, is no AA Fire at 1 at all. Just 1 round of AA fire that defends at 2 against all SBR Bmbrs when the Facility is being Bombed.
The Factory should be ignored.
Different question.
Can you change the value that Factories defend against SBR attack ? They currently defend at 1.Edit
So I may be able to change the unitAttachment for the Factory then ? And make it not fire -
isAAforBombingThisUnitOnly values: allows this unit to be an AA gun only when this unit is directly attacked by a strategic bombing raid
well yea that's what I want
I have that 
-
-
-
yea just a disconnect I guess

Can you make a "factory_major" not shoot the same time the new Facility unit does when being bombed ?

Edit
Hmm ... maybe if I make it like a "airfield" it'd work ? Can't place anyone then though. -
-
-
-
Lets start over.
I need to make a a unit that is a Factory, that it's AA defends at 2, against Strategic Bombing and when attacked by Bombrs in a Strategic Bombing raid and there is a "Factory" present, the "Factory" AA will not fire with it's AA against the Bmbrs.
What should happen, is the new "Factory" will fire at 2 against Strategic Bomber attacks. There should be no AA Fire from any other Facility.
-
<attachment name="unitAttachment" attachTo="Research_Facility " javaClass="UnitAttachment" type="unitType"> <option name="isInfrastructure" value="true"/> <option name="isConstruction" value="true"/> <option name="constructionType" value="AtomicProduction"/> <option name="constructionsPerTerrPerTypePerTurn" value="1"/> <option name="maxConstructionsPerTypePerTerr" value="1"/> <option name="canBeDamaged" value="true"/> <option name="maxDamage" value="20"/> <option name="consumesUnits" value="1:AtomicLevel5"/> <option name="unitPlacementOnlyAllowedIn" value="Eastern United States:Germany"/> <option name="maxBuiltPerPlayer" value="1"/> <option name="isAAforBombingThisUnitOnly" value="true"/> <!-- allows this unit to be an AA gun only when the territory this unit is attacked by a strategic bombing raid --> <option name="attackAA" value="2"/> <!-- AA defends at 2 --> </attachment>Trying to eat... Thunderstorm... and two dogs...
Cheers...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login


