Help - Search - Members - Calendar
Full Version: Stop AI vehicles crushing infantry
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
Dutchygamer
I've been trying to stop AI controlled vehicles from trying to auto-crush infantry, but so far I have had little success. The most logical option, namely applying the DONT_AUTO_CRUSH_INFANTRY KindOf to the unit(s) doesn't seem to do much. The other option I see is to stop vehicles from crushing infantry completely by changing the CrusherLevel, which is not the most preferable option.

So, anyone got any pointers? Is DONT_AUTO_CRUSH_INFANTRY another leftover that doesn't do much, or doesn't it apply to AI controlled units?
(USA)Bruce
I think thats the only option, Its a zh relic that just doesnt go away, same with outposts behavior...That cant be fixed too
ComradeGeneral
Try making an attack priority set and some object lists. Set all the Infantry to 0 (or maybe -1) and see if that works. If I remember from the manual, (and missions I've made) objects with a 0 priority are never attacked.

Worldbuilder

Yeah, page 72.
"Enter an integer for the priority. The default value is 1, while object types with a value of 0 are never
attacked. Higher values have greater priority. You define the scale yourself."
Oliver
Data\INI\Defaul\AIData.ini

AICrushesInfantry = Yes
Dutchygamer
QUOTE (Oliver @ 2 Dec 2016, 23:23) *
Data\INI\Defaul\AIData.ini

AICrushesInfantry = Yes

I knew I had seen a tag like this somewhere. That did the trick. Thanks for that smile.gif
Now I do wonder what DONT_AUTO_CRUSH_INFANTRY actually does (if it does anything at all).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.