I’m learning Unreal Engine and just completed a tutorial that gives pawns an AI with the ability to walk towards another pawn and attack it (link is here: Unreal Engine 4 Tutorial: Artificial Intelligence | raywenderlich.com).
I would like to do something similar for a Diablo-style game, but have a Player pawn execute these actions. The goal would be to make it so that when a player clicks on an enemy, a sequence of actions occurs:
- Move towards the enemy until it is in melee range
- Attack the enemy once
To achieve this, would it make sense to assign a sequence of AI behaviors to a “Player” pawn? Or does it make more sense to do this purely using Blueprints? Either way, any tips for what the high level approach looks like would be GREATLY appreciated.