FX: Create ammo shell particle from mesh

shellsscreen

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!

Create new Particle System and name it FX_Shell_Pistol. To learn more about cascade (UE4 particle editor) you should watch: Introduction to Particles in UE4 and Materials and Particle Interactions. if you search for “cascade unreal engine tutorial” in google you will find a lot of tutorials because the same system was in UDK / UE3.

We need to change Type Data for emitter to New Mesh Data

newmeshdata

For mesh select PistolA_Ammo static mesh. Now on Required Category:

  • Kill on Deactivate should be set to true,
  • Kill on Completed should be set to true,
  • Emitter Loops should be 1,

In Spawn Category:

  • Rate need to be 0,
  • Burst Count should be 1. It means that 1 emitter will be spawned right after spawning Particle System,

spawn

In Lifetime Category change Distribution to Float Constant and set it to 1.5.
This is telling us how much time this emitter can live.

Now in Initial Size Category. Distribution need to be set to Float Constant and should be 1.

In Initial Velocity Category use Distribution Vector Uniform and set Max and Min like here:

velocity

Now add new category Acceleration -> Const Acceleration
This is adding constantly acceleration to emitter for given direction. It should be set like here :

constacceleration

Basically its simulating gravity.

Add another new category Rotation Rage -> Init Mesh Rotation Rate:

initmeshrotationrate

Thanks to Rotation Rate shell ammo will rotate randomly during life. That’s all in the cascade!

USEFUL TIP: Particle can be another bottleneck for GPU / CPU. You should always set Bounds Size for your particles because if it isn’t set it’s generating bounds in Tick! To do so left click on black space and find “use fixed bounds.”
bounds


Now go to BP_Weapon_Pistol blueprint and find Fire Event we had created in earlier post.

Let’s spawn particle:

spawnemitter

USEFUL TIP: You can break down some of the pins in Blueprints like Transform. Just right click on the pin and select Split. splittransform

That’s all – you should see shell meshes when firing pistol. If your meshes aren’t spawning in right place you can change AmmoEject socket location in Pistols_A skeletal mesh.


Creating ShooterTutorial takes a lot of my free time.
Buy Now Button
If you want you can help me out! I will use your donation to buy better assets packs and you will be added to Credits /Backers page as well.

Implementing game is taking time but writing about this is taking much more effort!

2 thoughts on “FX: Create ammo shell particle from mesh

  1. Pingback: Creating a Shotgun | Shooter Game Tutorial

  2. The initial size doesn’t have a float constant anymore. Its vector now. Also the particle system is not working for me I don’t know why . did exactly the same things

Leave a Reply to Gryan Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.