x

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"

Actor not attaching to socket

So I'm following a youtube tutorial series and I get to around 02:20 when my weapon is supposed to attach to the player hand but it spawns at my feet and nothing else happens. I also get two errors.

alt text They basically say the same thing but one says Attach To Weapon Holster at the end and the other one says

Blueprint Runtime Error: "Accessed None trying to read property CallFunc_FinishSpawningActor_ReturnValue". Blueprint: ThirdPersonCharacter Function: Give Default Weapons Graph: GiveDefaultWeapons Node: Set Owning Pawn.

Product Version: UE 4.20
Tags:
more ▼

asked Nov 22 '18 at 02:09 AM in Blueprint Scripting

avatar image

Relone
3 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

First you go in the Third Person BP then at the Construct tab, after that you need to connect the Give Default Weapons node to Add to the Skeletal Mesh Component.

Sincerely, Cyberty

more ▼

answered Nov 22 '18 at 02:27 AM

avatar image

TsoukosTheKING
41 1 4 4

avatar image Relone Nov 22 '18 at 02:31 AM

It solved one problem! but at the same time made a new one. I now have a weapon beneath my character and one in my hand. I still have my errors from the Set Owning pawn and AttachToWeaponHolster sadly. But thank you for the help!

avatar image TsoukosTheKING Nov 22 '18 at 02:40 AM

I'm not sure if the below picture is working, but give it a try give_default_weapons

avatar image TsoukosTheKING Nov 22 '18 at 02:45 AM

I would recommend you to follow a different tutorial because the one you're following have a lot of issues and the project is based on a very old engine version. A very good TPS game tutorial: https://www.youtube.com/playlist?list=PLM6ZWbxOgIqsCb3dUJRdYoUbyi_zFCOjs

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I had this issue with spawned physics actors. Normal/editor placed physics actors were fine in attaching to a socket, but not the spawned ones. The solution was to leave "weld simulated bodies" checked, on "AttachToActor." It was unchecked and was the reason attaching objects to a socket was broken. Also, make sure that "snap to target" is on for both "location rule" and "rotation rule"

alt text

more ▼

answered Jun 24 '19 at 12:47 AM

avatar image

JonathanArmstrong
57 6 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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