Attach to Actor Component not working?
I have a very simple blueprint for a "torch" that I want my character to be able to pick up by running over it.
When the player runs over it, it should be attaching to a custom component that I added to my character blueprint. The RightObject component is what the torch should be getting attached to. In the torch blueprint it pulls the root component of the character which is the CapsuleComponent. Index 2 is pulled from that to get the Camera, then it pulls the component from the camera before initiating the attachment.
The problem is, it doesn't attach to that component. It decides to attach itself to the camera or on top of the camera for some reason, even though the RightObject component has a heck of an offset in front of the camera.
I will post the next two images in a coupe of comments since posts are restricted to 2 attachments.
Is there a reason you are using Get Child Component nodes instead of just getting a direct pointer to RightObject? You should be able to just "Get Right Object" from the cast-to.
You need to verify that your InParent is valid or it will attach to the root i think so it could be the problem. Maybe do a print string to verify what you are passing in?
answered Aug 09 '14 at 06:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here