I need to execute the same block of nodes that gets executed when another InputEvent occurs (e.g. when the key G is pressed). How do I do that inside blueprints? Its like simulating a keypress.
You could simply wrap the block of nodes into a function, and then just have all the input actions simply call that function.
So if I have some code in my blueprint that makes my character crouch, I could select all those nodes, turn them into a function (Let’s call it DoCrouch), and then have InputAction nodes for both the C key and Shift that both call DoCrouch. And obviously it doesn’t have to be based on Input but you could use any event to call that function.
Does that make sense? Basically you don’t want to have 1 input/event/whatever fake another input, you should just have both inputs/events/whatever point to the same function.
Perfectly makes sense…programmer here trying to get along with blueprint rapid prototyping
They’re pretty easy to get the hang of. Good luck!