How do I check for key held down?

Hi. I’ve assigned C and Z to be used to rotate a SM in an animation. It works, but I’d like the rotation to continue if either key is held down. This is my BP so far…

Thanks!
ritt3d

Hey @,

You may want to consider using a rotating movement component. This is a very simple movement component that can be attached to virtually any blueprint and allows you to continuously rotate that blueprint.

Just add the rotating movement component to your blueprint and in the details panel for that component, set the rotation rate on every axis to zero. Then, set up your key-press rotation like this.

image

This essentially does what you are asking for, when we press the key rotation rate goes to whatever we define, and when we release the key it gets set back to zero.

I hope this information helps!

1 Like

Awesome Bud, that’s exactly what I needed!! Thanks! I gotta spend some time look through all the Components available to me.

Cheers!!