Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 !

Product Version: UE 4.11
more ▼

asked Jun 13 '16 at 02:47 AM in C++ Programming

avatar image

26 1 3 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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

more ▼

answered Jun 14 '16 at 05:42 PM

avatar image

26 1 3 5

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question