I had a gap in duties for the game and so I decided to further my knowledge of melee weapon systems using Unity (we will need to know about it eventually anyways). I have learned everything in this post using Digital Tutors' "Melee Weapon Systems in Unity" (I got to give credit where credit is due right? haha). Here is what I have been able to do so far.
I used the tutorial's files for the pre-made level and arm rig and imported them in. I also imported my friend Dan's rigged goblin to use for the enemy instead of the tutorial's barrel.
I also imported all of the swords I had made in 3ds Max.
After attaching the arm rig to a first person controller, and adjusting the camera a little bit, I was able to successfully attach on of my game weapons to the rigs weapon node.
I then was able to make a health script along with a rectangular GUI health bar.
Next was working on the player's attack script. There was a lot more to scripting than I initially thought (I have no prior programming/scripting experience other than through this tutorial). You have to tell the computer the player attack distance, damage done, direction of attack, and cool down (so player can't attack an infinite amount of times within a small period of time).
So this is the extent of what I have done so far. I will try to finish the group of tutorials soon and hopefully will have a better understanding of what it takes to program a simple melee weapon system setup.
Here is a video of what I have so far, enjoy!


_1.png)
.png)
.png)
.png)



