Simple AI Blueprinting in Unreal
The aim of this task was to be able to introduce a simple AI into a third person environment. The AI must be capable of dealing damage to the player, where it will then decrease a health bar on the players HUD (which currently is an ever printed number on the screen). when the players health hits 0 they will die, thus force quiting the game via the console.
This code tells the enemy entity to move towards the player after every tick of the game.
This code assigns the player 1000 HP and prints the current HP to the screen every tick of the game. If the players health goes below or equal to 0 the game will force quit, effectively killing the player.
This code is an extension on from the enemy movement code and tells the system, that when the enemy gets within 200 (unknown measurement) of the player, to damage the player.
I then messed around with some Player assets from the Unreal marketplace, there i found that i need to do some more work to make sure that the enemy moves in the correct direction and is animated properly.
Recent Posts
See AllGame Engine Game Genre (example) Balancing Bottleneck in level design Demographics Psycho-graphics
Comments