How do I attach a beam to a specific point?

Hi. The problem is as follows. I am trying to fix the linetrace at the beginning of the weapon. But when I move up and down and left to right, the beam starts to behave inadequately, which in turn affects the behavior of the dynamic beam. How can this be fixed?

Sorry. I saw the screenshot, but I didn’t see the message. I didn’t use the standard particle system. I used niagara systems.Will it work with the niagara system?

With a beam particle, you can set the start and end points, right?

Yes, but for Niagara you set them as parameters:

Thanks for the link to the video. But that’s not quite it.
The beam works correctly until I start moving the weapon up and down quickly. It turns out I have the beam working like a whip, and it should go straight all the time, no matter how fast I move it on any axis. Here’s a screenshot to understand more what I mean

That looks like a line trace problem, no?

Exactly. The exit and position of the beam from the weapon in the correct position. But when moving quickly, the end point of the collision is oriented on the line trace, which, unfortunately, is not correct. And I can’t understand why…
UPD: It’s more as if the line trace is not rigidly fixed to a certain position, but follows it with some lag.

Just the line trace comes out of the arrow. As long as the character and weapon do not start moving in any direction. This is what the character, camera, and weapon link looks like

Where does the linetrace begin?

I would attach an arrow to the gun and have the linetrace originate from there. The endpoint is determined by beam length and the arrow’s forward vector.

Maybe late to the party… but try removing Local Space from the Niagara emitter… that seems to be the big problem