Hi there
I'm tryin to create a class to handle armor things, I derived from scene component and reversed the child actor component to get multiples output.
I'm actually having troubles to attach each part to a different socket
It actually spawns at 0.0.0. As far as I understand, I have only access to the main (Armorcomponent) Socket, and I cannot find the correct syntax... where and how should I call the attach to Parent Socket I should herit from SkeletalMeshComponent? I mean sould I write it in the character constructor or in the component one ? I tryed in blueprint also but position still 0.0.0.
edit: I forgot to say I have another class deriving from Actor holding my skeletalmesh and other armor related variable
I can post full code if needed or if anyone think it can be usefull
I'm tryin to create a class to handle armor things, I derived from scene component and reversed the child actor component to get multiples output.
I'm actually having troubles to attach each part to a different socket
Code:
if (Helmet) { HelmetName = Helmet->GetFName(); Helmet->AttachRootComponentTo(GetAttachParent(), "Helmet_Sck", EAttachLocation::KeepRelativeOffset); }
edit: I forgot to say I have another class deriving from Actor holding my skeletalmesh and other armor related variable
I can post full code if needed or if anyone think it can be usefull
Comment