How can I Spawn Meshes in Niagara by the distance in Runtime?

Hello, Everyone!

I’m making a Chain (not physical) for a game by Niagara System. One side is attached to unmovebale object, and the other to an NPC. When the NPC moves away from the unmovebale object, the Chain spawns links. If it gets closer, then vice versa. In “Spawn Burst instantaneous” made a “Scratch Dynamic Input” for “Spawn Count”, where the distance from Point A to Point B is simply measured and divided by the length of the link.
When the game starts, everything is calculated and spawns perfectly. However, when NPC moving, Chain links are not updated (I thought that Emitter Update would take this into account).
I don’t quite understand what can be done to spawn/remove a link during the game?

ChainIssue

What interesting, in Viewport Chain works good.
ChainIssue2

Thank you