Detecting child actors

So I’m working on my AI script and want to check if the detected actor is a child of the actor AI_Base.
Right now this part is just failing. How would I set it up so it check if it is the parent actor or any of its children?

That’s what casting is for. If you want to know if an actor of TypeA, cast it to TypeA.

That makes no sense, but it worked :smiley: Cheers.

1 Like