DCS World Steam Edition

DCS World Steam Edition

Isha Jan 9, 2020 @ 2:36pm
Mission Editor: How to Get AI to attack all nearby enemy buildings (static objects)
Is there a way to get the AI to attack all buildings in a zone? I tried to use Search and Engage within Zone as an enroute task but they don't target the placed enemy static objects (some oil tanks). Do I have to manually assign them as targets or is there something I'm missing?
< >
Showing 1-3 of 3 comments
Isha Jan 9, 2020 @ 7:15pm 
Originally posted by Insônia:
For statics, yes, there is no search and attack object in zone.

However in lua you have something like Object.getPosition( ) getID() for unit and object, if you loop though statics object calc the distance. You can assign target to unit reach certain range or trigger or use other attributes.

OK ty
Isha Jan 11, 2020 @ 11:26am 
Alright I wrote a python program to make them target all static objects with AttackUnit orders but now they bomb just one until they run out of bombs? I mean they kill it but don't move on to the next target they just keep bombing the same one.

What am I doing wrong?
Isha Jan 11, 2020 @ 11:33am 
Never mind I got it. Have to set max quantity or the AI just bombs the target over and over
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jan 9, 2020 @ 2:36pm
Posts: 4