Interacting with custom class within 2d character blueprint?
Child of Paper Character. Can't access functions within my class. Where to include my class? Tried in the parent, no result.
asked Oct 17 '15 at 04:56 PM in Blueprint Scripting
Your problem is that you by default only get an "Actor" reference from most functions (aka overlap events, hit events, etc.)
Once you overlap and want to call this function you need to cast the "Other Actor" to your desired class.
Alternatively if you have a few objects which should interact in a similar way (you walk by and something happens) I would strongly suggest using a BluePrint Interface.
Here is two documentation pages on what interfaces are and how to implement them:
answered Oct 18 '15 at 10:41 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here