Can you adjust parent-child configuration of the default fps controller specifically the camera
Hi, apologies if this seems like a dumb question,
https://gyazo.com/e14959f2cdcf560be369ac97dea14064 ^ Screenshot of hierarchy of myplayer_BP Now for picking up weapons in game, they attach to the socket location using GetMesh() in code, however this only uses the first mesh (inherited) as you can see in the screenshot.
So basically, how can i make FirstPersonCameraComponent->GetChildComponent(0)->GetMesh() work essentially, to use the mesh which is a child of the camera not just a child of the whole thing, or alternatively how can i force the camera to become the parent of the arrowcomponent and the mesh respectively.
My problem with my first theory is that GetChildComponent(0)->GetMesh() isnt a thing so this attempt doesnt work but there must be come work a round i am hoping XD.
Thanks, In advance guys, this problem has been tormenting me for awhile now !
asked Jun 13 '16 at 02:47 AM in C++ Programming
Answering my own question...
I figured out that i was overlooking something extremely obvious, although what i mentioned above would be helpful, it's even easier just to- instead of GetMesh() use the name of the first person mesh instead.
Can't believe it took me hours to notice
answered Jun 14 '16 at 05:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here