HND PROJECT
Last week, I managed to setup the game by creating a “Map”-like arena and reconfiguring the “First Person” blueprints to allow my Player to do things later. This week, I am going to create a Zombie AI that can follow the Player and giving the Zombie AI its own Health System. To start off, I had uploaded the “Third Person” blueprints into my games and began to create the Zombie AI.
Before I created my Zombie AI, I had to create an AI_Controller from the “New Blueprint” setting. Then afterwards, I created the Zombie AI from the “Character” in the “New Blueprint” setting and set its “Collisions” too “Generate Overlap (Tick)”, “Character Can Step Up” > “Yes” and “BlockAllDynamic”. Then, in the AI_Controller and Zombie AI’s “Event Graphs” I created a new script. This’ll allow the Zombie AI to chase the Player character non-stop until they are destroyed.
After I had done that, I then created a “Float” variable that I named “Enemy Health”. I then used this “Enemy Health” variable to improve upon the “Destroy Enemy AI” script and came up with this. In effect, this incorporates a very basic “Health System” onto the Zombie AI and allows them to last even longer then before. Now the Zombie AI can take 4-to5 hits from the Player.
Before I created my Zombie AI, I had to create an AI_Controller from the “New Blueprint” setting. Then afterwards, I created the Zombie AI from the “Character” in the “New Blueprint” setting and set its “Collisions” too “Generate Overlap (Tick)”, “Character Can Step Up” > “Yes” and “BlockAllDynamic”. Then, in the AI_Controller and Zombie AI’s “Event Graphs” I created a new script. This’ll allow the Zombie AI to chase the Player character non-stop until they are destroyed.
After I had done that, I then created a “Float” variable that I named “Enemy Health”. I then used this “Enemy Health” variable to improve upon the “Destroy Enemy AI” script and came up with this. In effect, this incorporates a very basic “Health System” onto the Zombie AI and allows them to last even longer then before. Now the Zombie AI can take 4-to5 hits from the Player.





No comments:
Post a Comment