Lever animation, how to animated two objects seperetly with the same key input

I have a box in UE5 with two objects, lever_LH and lever_RH, which are animated individually but share the same keyboard button, E. Each lever has a separate box collision to detect if the player is nearby and play animation only when player is nearby the box.

The problem is that when I press L, both levers are animated, not just the one where the player is in the box collision.

should I created the second box collision ?
How can I resolve this issue using Blueprints?
this is my blueprint for Lever_LH Im using the same for RH version but with diifferent endigs
if somebody could draw a example how can I resolve this issue using Blueprints, that would be a massive helpfull.


1 Like

Rather than enabling and disabling input, an easier way would be

Hello :slightly_smiling_face:,

Thanks for the quick reply! I tried the blueprint setup, but nothing happens when I press L—no animation is triggered.

1 Like

You do need input enabled still, on being play… :slight_smile:

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