Input Binding

As mentioned we're going to use Input Based attachment, so lets create two new Input Actions and link them in the Input Mapping Context (IMC_Default)

For this we'll need to keep track of the climb input state.

.h

.cpp

And llikewise hook up the input

.h

.cpp

Then we can replace the check to CanStartClimbing() like so

.cpp

Alright, now we've got the input settled, let's actually do something with it, like attaching to a wall!

Last updated