Moving ammo/bomb at the back of the weapon/gun

Hello. I want to place the bomb type ammo at the back of the weapon. I want it to move in some capsule according to moving to the character. I tried some stuff but couldn’t get exactly what I want. How can I contain the ammo and make it move smoothly? 1 ammo on the capsule, if there is no ammo capsule will be empty.

Thanks.

Add Ammo as child Static Mesh on the Weapon Blueprint. Toggle it’s visibility how you see fit, it will move with your weapon seamlessly.

How can I contain it at the back?

You can either attach it to a socket or just adjust the position manually.

I know that but I want to put it inside of an capsule or something. so, when character moves, the ammo also moves inside the capsule.

What do you mean by ammo moves inside the capsule?

Think of it like Mei’s weapon on Overwatch. At the back of the gun, there is a capsule. Inside the capsule, ammo. Not static but moving with the character’s movement.

Mei’s gun has a texture with scrolling UV. It does not actually move. You can watch this video for a tutorial on how to use Panner node to create that effect.

Thank you for that. If I want something like that, I will look into it.

Why do you make it hard? I explained it 3 times. I gave Mei example for you to understand what kind of capsule I want. I’m not making anything like Mei’s ice for moving texture. I want to make a capsule to hold the ammo freely. Here, its been 4 times.

Another example: Like Junkrat’s bombs. When he is jumping, bombs are moving in their container.

That is implemented using Anim Dynamics, you can read the documentation here. Information on how to create this type of behavior is here.

This was recently superseded with Immediate Mode physics, but I personally haven’t used that yet so can’t comment on it.

He didn’t even read my full topic, you can understand that on his first answer.

speaking as a third party on this topic i would say that gk0r wasnt making this hard, your explanation wasnt very good. generally when people talk of weapons and ammo its about realistic weapons so your question was odd and didnt make much sense. had you given an example or more fully explained the issue there would have been less confusion.

Thank you.

Has it ever occurred to you that I probably have a lot more experience than you, and perhaps your original question (along with the first correction) failed to communicate the message all along? Had you started with the Junkrat example from the beginning we would have gotten here much faster…

Look at your first answer. It doesn’t even an answer to my question. I never said you don’t have more experience,you probably do but if you don’t answer properly, you are not helping. If you won’t help, there is no need for you to answer. Don’t just go to a question and underestimate people with your simple solutions(!). You also don’t know how much experience does that person have.

I am going to check this answer as solution but it does not solve my problem. Thank you very much again.