Melee Weapon Systems in Unity
In this series of Unity tutorials, we learn how to create a melee weapon system that we would see in most hack and slash style games. Software required: Unity 3.4.
What you'll learn
Throughout these tutorials, we'll learn how to create a melee system that you would see in most hack and slash video games today. Although this course does not cover extremely advanced techniques, you will learn enough to customize this system for your very own projects. We'll start off by talking about a few key tips we need to know before we import a rig into Unity. Then we'll begin scripting a simple user interface to give our user damage feedback. Following that, we'll create the script that will handle how to deliver damage and how to limit the range of our attacks. Then we'll create a basic enemy AI that will watch and listen for our player. Then we'll wrap it up with applying physics to our melee combat system. Software required: Unity 3.4.
Table of contents
- Preparing the First Person Rig 5m
- Importing the Project Files 8m
- Setting up the Player 11m
- Creating the Enemy Health Script 11m
- Creating the Player Attack Script 10m
- Modifying the Player Attack 13m
- Creating the Attack Timer 7m
- Setting up the Player Animations 13m
- Creating the Enemy AI 13m
- Creating the Player Detection Function 15m
- Creating the Listenforplayer Function 7m
- Creating the Enemy Attack Functionality 9m
- Applying Physics to the Weapon System 10m