Enhanced input isn't firing

Hello! I just started using UE5 and learnt there’s a new input system, and I’m having an issue with shooting a weapon.

I am adding the mapping context to my player controller just fine, from my weapon blueprint, and using “showdebug enhancedinput” shows that it is successfully being added and detecting my input, but when I call the action in the weapon blueprint, it doesn’t trigger

image

Is there a way I can do this inside my weapon blueprint and not in the character blueprint?

Calling the weapons BP fire event directly from the IA_Fire should work out of the box. You just need to have a valid reference to that weapon.

In this example my inventory is stored in the PlayerState where I’m referencing the currently equipped weapon obj reference.

Hey, thank you for the reply ^^

Since I am calling this function inside my weapon blueprint, which is a separate actor that I attach to my character, would it need a reference to itself?

I tried doing it that way still, to see if it would work, but it still didn’t get triggered

my “Setup Character” node is just the default attachment that came with the FPS template, except for a little change in how the actor itself gets attached.

Edit: I found the solution. I need the “Enable input” node on the actor I want my inputs on, in this case, my weapon actor

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.