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 another actor and move around on it

Hi, I'm looking into making a climbing system. But as I am a beginner at using UE4 I'm not making much progress, I've created something to attach my actor to my 'target' but have very little idea of how to continue from here. To give you a better understanding of what I want to be able to do - I want to be able to grab onto an NPC (I guess even certain areas) and be able to climb around them as they move(if they do). Something like Dragon's Dogma or anything else that is similar.

So the crux of the problem is I don't know what I'd need to use to add movement to an attached actor(your player) around target(not sure if type will make any difference).

I appreciate any advice you could give me.

Product Version: UE 4.18
more ▼

asked Dec 05 '17 at 11:46 AM in Blueprint Scripting

avatar image

21 1 3 7

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

1 answer: sort voted first

Hi Myscelus,

Haven't tried it before . . . but you would probably want to use Sockets attached to the target Characters skeleton at the appropriate 'grab' points. You would probably want to look into using a combo of animation and IK for locking onto the sockets during animation. And possibly some physical animation and added physics impulses to sell the inertia. For some of that a good source are the Unreal Livestreams on Animation and animation system updates in recent engine versions, usually with Lina Halper, I think there is also one on Physical animation techques with Ian Shadden.

I'd comb through a couple of the Ledge climbing tutorials around and see if they had any additional pointers.

Anyway that is where i would start. Let me know if that helps.

more ▼

answered Dec 05 '17 at 12:51 PM

avatar image

406 1 6 8

avatar image Myscelus Dec 05 '17 at 01:37 PM

Thank you for your reply, I'll have a look into it. But from my limited knowledge using sockets would limit me to only those points on the actor as far as I know, I would like to be able to move around on it entirely. Regardless I will have a look as It'll probably help regardless. I'll definitely have a look into ledge climbing tutorials to see how they handle attaching to surfaces as it will give me a clearer idea of how to do these things.

I'll look into animation/IK when I have something even close to working heh.

Again thanks.

avatar image User609571414 Dec 05 '17 at 01:49 PM

Yeah, i just suggested the socket approach, as it will be quite difficult to calculate the movement of your mesh animation and the movement of the host mesh animation with any accuracy to reach the 'grab' points. as far as i know, you can drive a skeletons bones through code, but you can't preemptively get the anticipated location of a mesh point at any given position within its animation. Something to consider, unless there is a way to access that information, it would be useful for one of my projects.

avatar image Myscelus Dec 05 '17 at 04:53 PM

Seems like it'll be considerably more complicated than I was expecting at least. Things would probably be a lot simpler just using sockets and it's not like it doesn't have it's advantages for my purposes. Perhaps I can do both via abusing skeletons. I'll have to research some into that line of thinking as I know even less on creating/modifying them. Regardless, Going through a ledge tutorial has helped me anyway, Solved a previous problem I had due to how traces were done.

(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