NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
This is part of the ecm tank...

Behavior = AIUpdateInterface ModuleTag_03
Turret
ControlledWeaponSlots = PRIMARY
TurretTurnRate = 180 // turn rate, in degrees per sec
FiresWhileTurning = No
MinIdleScanInterval = 0 ; in milliseconds
MaxIdleScanInterval = 0 ; in milliseconds
RecenterTime = 0
MinIdleScanAngle = 180 ; in degrees off the natural turret angle
MaxIdleScanAngle = 180 ; in degrees off the natural turret angle
End
AutoAcquireEnemiesWhenIdle = No
End

Why does it in fact auto acquire enemies when idle? Im trying to get my ecm towers to do the same, but they wont auto engage, I have to manually set them to attack... What part of the code contains auto-attaack? most units have it but I cant find it.
Sponsor
Annihilationzh
14 years ago
I'm a little perplexed. Happens quite often though.

What kindof's are you using? Do you have CAN_ATTACK?
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Dont know conservative_building means, but here they are:

PRELOAD STRUCTURE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT SELECTABLE IMMOBILE TECH_BASE_DEFENSE CAPTURABLE TECH_BUILDING CONSERVATIVE_BUILDING

Annihilationzh
14 years ago
I'm now waiting for Annihilationzh to come in and solve it (you'd be amazed how often I do this).

I have this instinct that it might be a turret issue.

I'd suggest putting this:
  AcceptableAimDelta  = 180
in the weapon, and removing the turret, like so:
Behavior = AIUpdateInterface ModuleTag_03
AutoAcquireEnemiesWhenIdle = Yes
End

Then see what happens.

Some people I've helped seem to think I just know everything immediately and have all the answers. It takes a lot of thought and experimentation to solve some issues.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
joey55
14 years ago
here is something that popped up in my mind.

maybe the unit cant see other units, have you changed something in the line of sight or something?
because if the unit cant see the unit it doesnt attack it but if the weapon range is large enough you can still command it to attack

but first try annihilationzh's idea, most time he's right 🙂
you have to be a happy man, to be a happy man 🙂
NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Sight ranges. Fixed it! Thanks!
Annihilationzh
14 years ago
Wait a sec, why weren't your sight ranges high enough?

I thought of that problem but didn't mention it because I thought it was unlikely.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
joey55
14 years ago

Wait a sec, why weren't your sight ranges high enough?

I thought of that problem but didn't mention it because I thought it was unlikely.

Annihilationzh wrote:


thats why i did it for you.😉
you have to be a happy man, to be a happy man 🙂