[blueprint]Making an AI attack another AI on sight.

What i have done myself with great success:
1- Add a PawnSensingComponent to your bot pawn, this will give you a SeePawn event for blueprint, use that to set the target to attack.
2- Also, of course the victim should attack back, so add that the other AI attacks the one who attacks him, so set the enemy using the instigator from TakeDamage event.
This simple thing is working just fine for now in actual serious games, for an AI im developing for the game Heavy Gear Assault, i also use the pawnsensing component to get noise and target that.
Once i set the enemy on someone, that fires the whole behavior tree logic i have for combat stance.

1 Like