This component need to be initialized in the actor Begin Play.
After that, this effect must be updated in the Tick Event (or in a Timer).
After this, you can configure the different component variables.
With this done, your weapon movement sway is configured.