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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Want custom FP player to be able to pick up, move and drop object under a certain weight?

HI there,

I simply want my First Person Character to be able to pick up, move and drop objects. I would also like to be able to define only certain objects can be picked up so I thought maybe the best way was to define that only objects under a certain weight can be picked up. If there was a way I could rather just add a sort of "tag" to my chosen objects that would even be better.

So to give oyu background on my situation. I'm new to unreal engine. I'm practicing by slowly building up a first person game. So far I've created a FP character that can move and jump. Now I want to introduce this object pick up feature so that I can add a bit of interactivity to the experience.

So basically I am asking if someone could me with figuring out this blueprint or direct me to a simple step-by-step tutorial that could show me how I could achieve this?

This is how my character blueprint looks so far: alt text

Product Version: UE 4.8
more ▼

asked Jul 05 '15 at 06:01 PM in Blueprint Scripting

avatar image

16 3 8 11

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

1 answer: sort voted first

Try this tutorial https://wiki.unrealengine.com/Pick_Up_Physics_Object_Tutorial

Then set a branch with a condition of getting the objects mass and if its mass is less then or equal to a mass of your choosing, branch it to true. I would probably add the branch before setting the Physics Handle Active.

more ▼

answered Jul 05 '15 at 06:42 PM

avatar image

139 3 4 11

avatar image Agletsio Jul 05 '15 at 08:20 PM

Thanks for the response!

The tutorial seems like what I want except I don't need the gravity gun impulse feature. Just want to pick up and move objects.

I've followed the instructions so far and I'm stuck at a point where I see there are connection boxes with maths symbols (x, +, -). I'm not sure how you create these boxes? What exactly are they?

avatar image b16redlined Jul 05 '15 at 08:49 PM

Try dragging off the pin that goes to it type add, subtract, multiply, or divide and make sure it's of the right type, int or float most likely. If there's one that says ABS that absolute.

If dragging the pin out doesn't show it for whatever reason just right click on the blueprint and type add, subtract, etc.

Also, to get those, you can just put in, + or -. As well as the >, <, >=, <=, or == symbols.

avatar image Agletsio Jul 06 '15 at 08:03 AM

Ah awesome, thanks a bunch! I seem to be getting the hang of it!

Haven't had the chance to fully check it out yet so if I'm stuck again I'll let you know.

Seriously appreciate all the help!

avatar image Agletsio Jul 07 '15 at 10:31 AM

ok so got everything to work. Can pick up object and I am able to define only object under a certain weight.

My problem now is that when I pick up an object it hovers quite a bit above my crosshair. How can I set it that it always stays in line with my crosshair?

Also would like to keep object at the same distance from player after picked up. At the moment it seems it jumps to a certain position (one quite far away from the player as well). Is there a way to set this?

avatar image b16redlined Jul 07 '15 at 10:49 AM

To change the position when it's picked up change the x, y, and z values where you set the physics handle.

I'm not sure without mocking it up in blueprint but if you're having a problem with distance try removing the middle mouse up and down increasing and decreasing the pick up distance variable and just hard set it to something you feel works best for you.

I may need to make that a bit clearer. Don't remove the variable itself, just don't let the mouse wheel change it.

avatar image Agletsio Jul 07 '15 at 12:14 PM


Got it figured out. This is great, learning loads. Thanks for the help once again!

avatar image Agletsio Jul 08 '15 at 09:09 PM


I posted another question earlier today and it hasn't been answered yet. Could you take a look and see if you can give me some advice?

Here's the link https://answers.unrealengine.com/questions/254574/trigger-matinee-animation-with-specific-input-only.html

(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