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 2 actors together (like a sandwich)

Hi, i've been trying to get this to work in a long time now, probly spent around 7 or 8 hours ( programming isn't really my thing, and i'm just learning the whole blueprint thing)

So, basicaly what i'm trying to do is to have the player character be able to grab and drop a couple of actors together ( to pile them up like a sandwich ). I have the player character figured out and found a way to make the blueprint for grabbing actors and stuff, but i can't make them attach to each other when overlapping. I have tried it so many times now that i don't think i could provide a good example for screenshot, but they normally go around like this : in one of the actors (lets say the bread) i have a box and a box collision, blueprint -> on begin overlap (boxcollision) attach to actor ( i have tried a bunch of variants of this node, so i don't even know which one to use ). i leave the socket empty because i can't put a socket in the actor ( i have tried to put a socket in the static mesh origin, but i don't think it worked ). Looking in the internet i can only find cases where people want to attach an actor to the player character, and i don't want that.

So if someone could just show me a really simple blueprint example of attaching 2 actors when you collide then i would be really grateful. Sorry for my english.

Product Version: UE 4.12
Tags:
more ▼

asked Jun 23 '16 at 10:57 AM in Blueprint Scripting

avatar image

ThalesB
1 1 1

avatar image Overwatch04 Jun 26 '16 at 05:08 AM

I have tried many times to attach actors together and was unsuccessful. Maybe you get the actors where you want them you can set the location based on the other with an offset so they stay the same distance apart. Just thought of it and it may work if you can cast actors to each other and get their rotation and location!

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

0 answers: sort voted first
Be the first one to answer this question
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