How do you make a unit shoot only at air targets?
For my own use I've tried to make the aa units in SWTA shoot at only air targets but all I've managed to do is completely stop them fireing.
I've set the 'badtargetcatagory=NotAir' and added 'toaironly=1;' to their weapons but now they won't fire at all.
Is there an easy way to make this work or do you need to add 'dud' weapons the the model (as per many of the anti-air units in AA)?
Quick anti-air question
Moderator: Moderators
With FLOZi's help, I've found the cause of this. Spring doesn't use TEDClass to denote what type of unit it is, like you would expect. At least, not for toaironly=1; and OnlyTargetCategoryX=VTOL; weapons.
This is from the P-51D FBI file (yay exclusive AATA builds):
Category=ARM VTOL LEVEL1 WEAPON NOTSUB CTRL_Y;
And this is from the X-Wing:
Category=REB CTRL_W CTRL_V LEVEL3 NOTSUB NOTSTRUCTURE;
Notice the key difference. The X-Wing lacks the "VTOL" part. That is the problem. Once I put "VTOL" in the X-Wing's category line, toaironly=1; weapons fired perfectly and as expected.
So, there you go kids. I'm not sure it was a problem for anyone else, but that's what causes it. It'll be fixed in the next version of SWTA (which should hopefully be soon, we're just trying to finish a couple new units and models now).
This is from the P-51D FBI file (yay exclusive AATA builds):
Category=ARM VTOL LEVEL1 WEAPON NOTSUB CTRL_Y;
And this is from the X-Wing:
Category=REB CTRL_W CTRL_V LEVEL3 NOTSUB NOTSTRUCTURE;
Notice the key difference. The X-Wing lacks the "VTOL" part. That is the problem. Once I put "VTOL" in the X-Wing's category line, toaironly=1; weapons fired perfectly and as expected.
So, there you go kids. I'm not sure it was a problem for anyone else, but that's what causes it. It'll be fixed in the next version of SWTA (which should hopefully be soon, we're just trying to finish a couple new units and models now).
- Deathblane
- Posts: 505
- Joined: 01 Feb 2006, 01:22
- Deathblane
- Posts: 505
- Joined: 01 Feb 2006, 01:22