Posted by: NOP - Thursday, June 23, 2011 5:05:27 PM
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 [b]AutoAcquireEnemiesWhenIdle = No[/b] 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.

Posted by: Annihilationzh - Thursday, June 23, 2011 10:57:04 PM
I'm a little perplexed. Happens quite often though. What kindof's are you using? Do you have CAN_ATTACK?

Posted by: NOP - Thursday, June 23, 2011 11:48:27 PM
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

Posted by: Annihilationzh - Friday, June 24, 2011 3:40:44 AM
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: [code] AcceptableAimDelta = 180[/code] in the weapon, and removing the turret, like so: [code]Behavior = AIUpdateInterface ModuleTag_03 AutoAcquireEnemiesWhenIdle = Yes End[/code] 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.

Posted by: joey55 - Friday, June 24, 2011 3:55:47 AM
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 :)

Posted by: NOP - Friday, June 24, 2011 5:26:22 AM
Sight ranges. Fixed it! Thanks!

Posted by: Annihilationzh - Friday, June 24, 2011 6:30:12 AM
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.

Posted by: joey55 - Friday, June 24, 2011 8:59:33 AM
[quote=Annihilationzh]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.[/quote] thats why i did it for you.[wink]