I have a problem. My AI keeps choosing targets that should not be available.
This is the situation
1- The AI has one ability "Shoot" that has one condition in the Target Selection Setting where the Combatant Target status in NOT from factionA
2- The only MoveAI Enemy detection condition is that the status is in NOT from factionA
3-The Battle AI setting only uses the ability "Shoot"
When playing the game the AI keeps switching between valid targets and targets from factionA :(
Is there anything else I'm missing that could affect the target selection ?
Try adding a battle AI with None action as the last battle AI of the combatant to do nothing instead.
Also, is that condition set up as Target Condition or Auto Target Condition in the target selection settings of the ability? Only Target Condition will make a combatant an invalid target if the conditions are not met.
The Ability node of the battle AI also has the Force Found Targets option that can overrule other target selections. So if that's enabled it could also cause this.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
1- the player doesn't use the ability even when the Player is withing detection range (Player is part of the Player faction)
2- the MoveAI try to go towards targets that shouldn't be picked (Vegetation is part of the naure faction)
MoveAI
Ability
An action targeting something can tell the move AI to move toward the target if it's out of range, though - so if some action of the combatant is used that targets the vegetation it'd tell the move AI to go there until it's in use range.
Overall hard to say - I guess I'd need that setup in the test project to check out directly, or is it already in the latest one I have?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!