
Description
This Basic Melee Combat AI System will allow you to set up AI that will fight the player by simply adding a component to your blueprint. It is incredibly easy to customise and add onto any AI you want to be able to melee fight.
Trailer: Link
Documentation: Link
All of the AI use behaviour trees and blackboards and are set up so that you can easily add on to the current existing structure, or remove/change anything you don't like.
An example map is also included to test out the AI in action. On top of this, there are 24 animations included for the player and AI, as well as an AI spawner blueprint.
Combat Mode
The player can press "Q" to enter combat mode which is where they can actually punch and kick. By holding right mouse button they can also lock onto the closest AI within a set radius around the player, this will lock on both the camera and movement.
AI Behaviour
The AI will be randomly roaming around the level until the player is reachable. As soon as they can reach the player, they will make their way over and gather in a crowd around the player. One AI will then go in and attack the player at a time, additional AI will be agro'd whenever one dies or if the player hits them. A new random AI will also be agro'd every 20 seconds.
AI Spawner
The AI spawner can be easily customised for differing amounts and timings. By default, each spawner will spawn in 2 AI every 10 seconds until there is 4 AI in the whole map. When the number of AI in the level crosses below 4 (the max amount), AI will continue spawning in again.