Currently I’m making a 3D RPG style game that there are multiple kinds of stuff that player can interact with.
I used the simple on hit event to trigger the reaction of player according to the class of the other actor.
The blueprint I used for it is like this one :
However, when I tried to implement something like a switch in C++ programming, the BP becomes a mess.
What is the best way should I used for this kind of scenario?