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"

Attaching blueprint object to skeletal meshes socket.

I am trying to attach an object on a skeletal mesh using the step described in the documentation. I wanted to push it a bit further and instead of attaching a simple static mesh, i want to add an actor(blueprint with his own script) to a socket.

How would i do that ? Someone could write an exemple blueprint ? I am totally lost on how to make it work, i cannot get my blueprint object to work with the attach actor to component node. Adding the variable as object or actor would not work,couldn't find any cast either,

Any idea ?

Product Version: Not Selected
Tags:
more ▼

asked Apr 13 '14 at 01:12 AM in Blueprint Scripting

avatar image

Reboot
121 11 17 20

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

2 answers: sort voted first

Did you tired child actor component?

more ▼

answered Apr 13 '14 at 01:57 AM

avatar image

Shadowriver
37.8k 937 172 1123

avatar image Reboot Apr 13 '14 at 01:23 PM

Unless i do not understand childactorcomponent, i do not believe it is what i am looking for.

The Attach Actor To Component node SHOULD work.

My problem is most likely the way i am using/understanding variables.

Attach Actor To component require an "object"Actor and the object with the blueprint is a "object"Blueprint. I cannot get it to work in the input node of Attach Actor to Component.

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

I figured it out ! Since my character and object were not placed in the level, i had to spawn an instance of them to ba able to get it as an Actor.

I used the node Spawn Actor, selected my blueprint actor class, and then passed it as an Actor.

more ▼

answered Apr 13 '14 at 01:45 PM

avatar image

Reboot
121 11 17 20

avatar image Chimp Jun 04 '14 at 06:45 AM

Im trying to do the same thing. A StaticMesh attaches fine to my character but a SkelMesh doesn't work. How did you spawn an instance of them exactly Reboot - would you mind elaborating on that?

(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