Just spawned a Cable Actor and attached it to an acctor socket, in this case is a harpoon , this part works well for the first side of the cable
FActorSpawnParameters SpawnInfo;
CableActorRef = GetWorld()->SpawnActor<ACableActor>(meshComponent->GetSocketLocation("CuerdaSocket"), (GetActorForwardVector() * -1).Rotation(), SpawnInfo);
CableActorRef->AttachToActor(this, FAttachmentTransformRules::KeepWorldTransform, FName("CuerdaSocket"));
then I am using a function to stablish the other side of the cable, and does not matter how I try (other actors, with or without socktets, etc…), It doesn’t work
void AProyectilArponClass::SetActorToSnap(AActor *target, FName socketname) {
CableActorRef->CableComponent->SetAttachEndTo(target, target->GetRootComponent()->GetDefaultSceneRootVariableName(), socketname);
}
I am using Unreal 4.21.2, Thank you in advance for any help