blueprint works every once in a while

The blueprint for opening and closing doors and the blueprint for turning on lights does not always work. Now it works, then it doesn’t. And after 3-4 times on and off it stops responding at all How can this be solved and what can be the problem?

Not 100% sure judging by the script, but I’d say the issues stem from allowing this actor to handle input. The door should never modify what the player can and cannot do.

Pressing E should be in the player and call an interface whose function is implemented in the Door BP.

1 Like

Apparently that was the point. Thank you very much. :grin:

1 Like

That was quick and efficient of you!

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