How do you allow the same mouse to click multiple times via Blueprints?

I have a blueprint set up that is triggered by a right mouse click node. The basic idea is that when I press and hold the right mouse button, an object will appear visible. When I release the right mouse button the object will turn invisible. The blueprint is working as it should, however, it only works one time. When I right click a second time nothing happens. Does anybody know how to allow the right click node to reset or allow me to click multiple times?

Two things:

  1. I’m pretty sure you don’t need the DoOnce nodes in this case. Just remove them completely.
  2. You’re changing two different parameters of Visibility (SetHiddenInGame and SetVisibility).

To solve the second issue, do either one of these:

  • Wire a “Set Visibility” node to Pressed with NewVisiblity of false, and a “Set Visibility” node to Released with NewVisibility of true
  • Wire a “Set Hidden In Game” node to Pressed with NewHidden of true, and a “Set Hidden In Game” node to Released with NewHidden of false.

Hope this helps!

Thank you, this worked!