Military Weapons Silver asset package comes with almost all particles needed for weapons and ready to use: muzzle flashes, impact particles and trails. It have shell mesh as well, but it doesn’t have shell FX added. Before we move forward with next tutorial about weapons let’s create shell particle. It’s super easy!
In this post I will focus on shooting and reloading functionalities. Goals that I want to achieve:
- I want to have easy method for shooting with different weapons,
- If my weapon doesn’t have ammo it should reload automatically,
- I can reload my weapon whenever I want,
- I won’t be able to shoot if I’m changing weapon,
In this post weapon won’t fire any projectile yet but you will learn more about blueprint communication, creating animations in blueprints and doing recoil directly in animation blueprint.
Now if we have our inventory we can start adding new weapons!
- Player can choose which weapon he want to play, (for now it will be placeholder UMG we did in inventory tutorial)
- Player can change weapon during gameplay with animation, (by keyboard now)
- Weapons will attach correctly,
- Hands will update idle animation to correctly hold the weapon,
We won’t be doing shooting / reloading in this post. Let’s focus on basics first.
There is a lot of questions like:
- Can I create whole game using Blueprints only?
- What about performance if I’m using Blueprints?
- Which should I use – Blueprints or C++?
I will try to answer those in this post.
Before start you should watch this tutorial from Epic. Creating Inventory isn’t so hard but it requires Arrays and Structs to work with.
What I would like to accomplish:
- Player will have his backpack which will be global inventory with all of the weapons collected,
- Player can choose which weapon he would like to use in mission,
- Inventory should be generic. I don’t know yet which weapons I will use and which stats they will have,
- Game should remember which weapons I’ve chosen so I don’t need to choose them again,
In earlier post I’ve described how to move assets from Shooter Game Example. To complete this tutorial you will need to move Animations and Characters folders to your project.
Unreal Engine 4 comes with lots of examples which can be used commercially if you are using Unreal Engine 4. I will show you the most simplest way to migrate / copy assets from different projects.
As example I will use Shooter Game because it will be needed later. Shooter Game can be found in Learn tab. Please download it and run the project.
In this post you will learn how to implement look around controls for Mouse, Touch and Gyro. It will cover basics of UMG and blueprint communication. Continue reading “First person look around controls – mouse touch tilt”
If you are indie developer and you don’t have graphics artists in your team it’s always hard to create a game. Lot’s of my indie friends struggle the same problem:
“from where can I get assets for my game?”
Lot’s of my friends who are doing games using different engines than UE4 have problems with starting using UE4 because they do not know how the engine works. I will start with explaining how the main classes work.
Let’s create new blank project with starter content.