[WOTC] Additional AI Behaviors
Creating New Actions and Conditions for the AI BT. At the time there is only one new behavior, TryStandardShotOnDestructible that modders and players can add to their ai behavior trees. This behavior allows enemy units to target and shoot destructible targets when their enemies are in the blast radius, the same way Xcom can. See XcomAI.ini for more info on how to add this to your bt trees.
For AI Mods who want to include this in their mod Add the X2AIBT_AdditionalAIActions.uc and X2AIBT_AdditionalAIConditions.uc files to your classes folder. Open this mods XComAI.ini and copy and paste the all of the code below the first line into your mods XComAI.ini Then for the following two lines:
+CustomNodes=(NodeTypeString="AddCondition", ExtendsFromType="Condition", ClassName="AdditionalAIBehaviors.X2AIBT_AdditionalAIConditions")
+CustomNodes=(NodeTypeString="AddAction", ExtendsFromType="Action", ClassName="AdditionalAIBehaviors.X2AIBT_AdditionalAIActions")
Replace AdditionalAIBehaviors with your mod’s class folder name that you inserted X2AIBT_AdditionalAIActions.uc and X2AIBT_AdditionalAIConditions.uc in.
