I’m working on a game, and I’ve ran into a problem:
Basicly, what I want to do is, when my projectile hits an actor, I want to cast into that actor, and get some of it’s variables like HP(float) and Name(String). Here comes the twist in the story:
I want to make it dynamicly. So if the projectile hits ActorA, then I want to get ActorA’s HP and Name, if it hits ActorB, I want to get ActorB’s variables.
Is there a way to get on a Hit event which BP-Actor the projectile hit, and cast into the Actor?
(Sorry for my terrible English)