UChildActorComponent Call a Function

Thanks for your answer : )

I want to say that my UChildActorComponent Should only be From the class AParentWapon

Do you know how I can do this?

And your cast doesn’t work because you aren’t saying to which class you want to cast.

WaponR = Cast(WaponRComp->GetChildActor());

But if I do it so:

WaponL = Cast<AActor>(WaponLComp->GetChildActor());

it works(I just casted it to an actor to make the test easier).

Thanks for your help but I still want to know if there isn’t an easier way to make this.