# Dynamically Control Head Bobbing Oscillation (CameraShake)

**URL:** <https://forums.unrealengine.com/t/dynamically-control-head-bobbing-oscillation-camerashake/365291>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, dynamic, question\
**Created:** [July 27, 2016, 2:16pm UTC](https://forums.unrealengine.com/t/dynamically-control-head-bobbing-oscillation-camerashake/365291 "2016-07-27T14:16:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Overwatch04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Overwatch04](https://forums.unrealengine.com/u/Overwatch04)\
**Post date:** [July 27, 2016, 2:16pm UTC](https://forums.unrealengine.com/t/dynamically-control-head-bobbing-oscillation-camerashake/365291/1 "2016-07-27T14:16:10Z")

</div>

I have a camera shake setup for my walking and sprinting but run into issues with how it is setup. I currently have the LocOscillation set with amplitude of 15 and frequency of 15 since it matches my sprinting quite well… My issue is that as the player stamina is dropping I have the walk speed going slower to simulate the character getting tired but the Oscillation stays the same. Is there a way to cast to the camera shake to dynamically change the Oscillation so I can modify it on the fly? I have tried casting to it so I can try to access the settings but I am not sure where to begin.

Thanks in advance!
