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"

How Do I Make The Character Play His Animation When He Picks Up An Object?


I am using Unreal Engine 4.10 and I want to create a Blueprint that would allow my character to pickup or grab the object and have it in his pocket or back while he plays a animation for it. I have been trying to find a source page that explains about it but so far, I had found none. (Not this is for a third person game I want to make.)

This is the example I mean: link:(https://www.youtube.com/watch?v=NA0AZkPCA_c)

It would be awesome to if you show a screenshot of the blueprint and explain how it's done.


Product Version: UE older version
more ▼

asked Nov 24 '16 at 02:44 PM in Blueprint Scripting

avatar image

Kyle Carpio
124 13 17 19

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

1 answer: sort voted first

One way; On the object you want to pick up, add a collision volume, set the collision presets to "overlapalldynamic" (or custom, and just pawn). You can then do a "OnComponentBeginOverlap (CollisionVolumeName)" node in your event graph, that enables the user to press a button to pick up the item.

Then just have the button press play the associated animation on the player, destroy the actor on the ground, and equip/do whatever to the item for the player.

more ▼

answered Nov 25 '16 at 01:12 AM

avatar image

136 4 5 13

avatar image Kyle Carpio Nov 25 '16 at 09:35 AM

Is it okay if you show me a screenshot of it in Blueprint please?

Sorry, seeing something visual normally helps me.

avatar image Morkath Nov 25 '16 at 05:05 PM

Should be something like this;

This will enable the user to apply any input we later specify, while they are overlapping the listed item (A collision box named P1_Interact in this case).

alt text

Then we specify an action on key input (Play an animation on the player, and then call a function on the player to do something when they hit the E key)

alt text

Both of these go on the object the user is interacting with. Then with the function for equipping the item or whatever would go where it makes the most sense.

overlapinput.jpg (52.7 kB)
overlapinput2.jpg (86.3 kB)
avatar image Kyle Carpio Nov 26 '16 at 04:21 PM

I see, I'll try it out and hope that this would work.

I will let you know when my issue is solved from your solution.


avatar image Kyle Carpio Sep 07 '17 at 08:51 PM

Long time, sorry for the late reply but there is no "Set Player Stats" anymore in Unreal Engine 4.13.

avatar image Morkath Sep 08 '17 at 04:41 AM

Yes, like I mentioned and as you can see in the image, it is a custom function. That is where you would put whatever action you want to occur after the animation plays.

avatar image Kyle Carpio Sep 08 '17 at 05:34 PM

Oh I see, sorry I just had never seen a Custom Function in this style you did. That I do not know how to do it, plus I keep having this warning sign whenever I try to "Cast To" my Player Blueprint.

What about the "Enable Input" and "Disable Input" functions? Where do they branch off too?

Sorry, it's been like a long time I lasted used Unreal Engine 4 and I am currently trying to get my memory back.

(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