Hi, I have set my mouse left click for click to move, and my right click to aim.
now, I want to cancel my ability to click to move when I’m aiming, and shoot instead.
I know how to do it with branches and booleans, but I wanted to know if I can do it easily and without bloating my graph by using the new enhanced inputs. thanks
Here are two ways you could go- the latter of which may be more what you’re looking for.
If you search the name of the action, there are two things that should pop up- one of which is the event, the other being a pure function that returns the value. In this case, that value will be a bool saying whether or not the action is currently active (being held).
You can use that with a branch to determine what your left click will do
Alternatively, you could remove/add contexts to make it such that those two actions are in separate contexts and have the right click action manage that. In that case they would be separate input events. That’s basically the entire purpose of contexts.