how to Custom Camera Shake while walking or running?

In horror game, I want to Custom Camera Shake while running or walking, like moving along a curve.
I have tried using Camera Shake and Sequence Camera Animation Pattern, But I need to change input axis to input action, and use Timer to loop it.
Is there any easier way?

First create a camera shake by right-clicking> Blueprint class>type Shake and choose Matinee Camera Shake(MCS)

Then go to ur CharacterBP> Movement> right-click ,search for Play World Camera Shake> attach to the last node in Movement.

>Choose ur MCS for Shake

>Get Mesh from Top-left screen, drag from it and search Get World Location> attach to Epicenter. Leave everything as is.

Now open up MCS (don’t click ‘Open Full Blueprint Editor’)>

Edit Oscillation.

Oscillation Duration 0.5,

Blend-in/out-time 0.1 ,

Go to Rot Oscil >Pitch>Ampli 0.1 Freq 0 ,

Then Roll>

Ampli 30 or to ur liking,

Freq 1, or everything as is.

Save .

Press Play, if movement not strong enough just play more with the settings.

Hope that helps!

Thanks for your reply. And I’d like to specific more to my question. The “curve“ I mentioned means a curve of custom shapes, not sine wave or perlin but a shape totally customized by me.

Patterns combination can be a way to alternate it, but I still want to know if there exists a better way.