I am trying to make a horror game and was wondering if there is a way to make a class that handles all of the relevant variables and events, such as ComponentBeginOverlap. It needs to be able to be dragged and dropped into the world and work without having to refer to the level blueprint. I don’t know if this is possible so that is why I am asking on this platform. Thank you
I deleted your duplicate quastion
Yes. If you want a generic-use thing like this, I recommend the programming pattern of using Interfaces. Any other class that includes the Interface can have the same function called on it that the interface has (like on component begin overlap call that function), but each class can implement the function any way they want, to give you the desired effect when triggered.
However you may not need to go that far depending on how your jumpscare encounters are built.