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"

How do I pickup a item onactorbrginoverlap by pressing f?

I am trying to add an item to inventory by walking over to it and pressing "f" WHEN I am inside the box collision. Can anyone help me make it to where I can pickup an item when I press "f" in the box collision of that item?

Product Version: UE 4.19
Tags:
more ▼

asked Nov 27 '18 at 03:38 AM in Blueprint Scripting

avatar image

Jason0226
7 1 1 5

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

1 answer: sort voted first

you will need to enable input in the pickup actor then script on input event F (insert your pickup script). basically like the below example, on overlap you enable the input to the pickup item actor, on end overlap you disable input. then when the f key is pressed and you are overlapping you do the pickup script whatever that consists of in your case.

alt text

capture.png (182.1 kB)
more ▼

answered Nov 27 '18 at 04:36 AM

avatar image

ThompsonN13
10.1k 33 10 23

avatar image Jason0226 Nov 27 '18 at 11:11 PM

It worked. Thanks!

(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