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"

Attach actor to component from external blueprint, fails

I know, lots of threads like this one. I read them all. Alas, here is the question.

I tried attaching a newly spawned actor to my main actor with AttachToActor. It only attached to the pelvis, not the socket, because "self" refered to the full player character, and not it's mesh. Thus, I used AttachToComponent, and it worked, attached on the socket.

Now that I try the same thing from an external blue print, attachment doesn't work. What am I doing wrong?

Image 1 and 2: setup with AttachToActor fails. Interesting place for a shovel :), but AttachToComponent worked.

alt text alt text

Image 3: Similar script from an external blueprint, swaping weapons from the ground, spawns in front of the character, but does not attach to character/socket, and it refuses to use node "set simulate physics". alt text

My need: make the attachment work like when I did it from the character blueprint. So... help? Ideas?

Product Version: UE 4.14
Tags:
attach_bp.jpg (116.8 kB)
result.jpg (82.2 kB)
more ▼

asked Jan 18 '17 at 02:25 AM in Blueprint Scripting

avatar image

Maha Vajra
226 3 71 34

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

1 answer: sort voted first

I made my own solution: from my external blueprint, I call an event inside my PlayerCharacter, that will do the spawning of actor and attaching to component. It works, but it means I can't control everything from my external blueprint. I like dominating the game from my world_global_bp, which is a collection of all things, variables, functions, loadgame, savegame, details about the game...

more ▼

answered Jan 18 '17 at 09:15 PM

avatar image

Maha Vajra
226 3 71 34

(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