Yea thats the thing I am trying to wrap my head around. For instance lets pretend i wanna use left click to damage some objects and with others i want to interact, like basic light switches or initiate dialgoue. I think interfaces would be best but i am wondering how one would neatly do it with casting alone. Have a sequence node with bunch of casting? Like cast to „enemy“, cast to „objectprop“, cast to „npc“ to talk etc. Now all three could have different parents and are different classes entirely. Just looking for a way to efficiently do it; or want to know how i would deal with it if i only had to cast.
Note: I am asking purely for educational reasons as I am trying to understand and leverage my knowledge on every communication method.
Without going into UE4 api; in c++ would you handle it by checking if(actor == hitactor) and then go from there? So bunch of if statements that deal with every hittable object. Am I right to assume casting is a bp thing?