I have a custom class inheriting Actor and try to execute some code when it collides with an object. The Actor has a permanent movement and I want to flip its direction on collision.
In the docs I found OnActorHit but I fail to understand how to bind it to my Class.
Based on the answers of this question I tried to override it, but it doesn’t seem part of the actor class and thus can’t be overwritten.
Then I tried the following inside my class constructor:
I came here trying to achieve the excact same thing.
Is there a solution to this? There seems to be no way to find out the correct signature of the handler function. I suppose the business with the structs is something that is supposed to be hidden by the reflection magic, right?