I want to play a client camera shake animation, but be able to specify a osculation duration when I call it. I created a blueprint with the parent class CameraShake I see in the class defaults you can change it but I want to change it when I call play on it. I can’t seem to figure out how to set that variable. I could probably override the tick function or something and use my own to shake the camera, but that’s a lot of work to just set the duration dynamically before starting the shake.
I ended up setting the oscillation duration to 100 seconds and then setting a timer for the specified number of seconds to force stop it. I tried setting the oscillation duration to -1, but that doesn’t seem to work as described. Although this is a bit of a hack it works. It would be nice if there was a less hacky way of doing it. Also would be nice if there wasn’t the 100 second limit and I could use -1 as described.
1 Like