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"

Collision does not recognise character

Hi,

I have been following a tutorial for making pickup items using a parent & child actor classes. The BP_Pickup_Base has the 'on component begin overlap' event which checks that the overlapped component is the player and if so, run a pickup function and destroy the the actor (the pickup item).

alt text

The problem i am having is that the branch condition doesnt seem to come true meaning that the overlapped component is not == to get player character.

The video i was following does not run into the problem and im new to blueprints so im a bit stuck here and really want to know what the problem is. any help would be appreciated =]

Product Version: UE 4.13
Tags:
more ▼

asked Nov 12 '16 at 01:37 PM in Blueprint Scripting

avatar image

jrmorley
6 1 2

avatar image Nken418 Nov 13 '16 at 11:03 PM

You could also just cast it to your player character. You could either as Rekenq mentioned, drag the OtherActor node out as opposed to the component. I am thinking that you might be able to perhaps (if you want to continue using the component) then you can set the == node to a component from your player character, maybe a collision sphere or something.

avatar image jrmorley Nov 16 '16 at 02:43 PM

Thanks for taking the time to answer my question. much appreciated!

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

1 answer: sort voted first

The problem is that you are trying compare a character with a component in your == and that will always result false. Instead of dragging from overlapped component in your BeginOverlap node drag from the other actor pin and compare that instead

more ▼

answered Nov 13 '16 at 08:59 PM

avatar image

Rekenq
712 18 6 25

avatar image jrmorley Nov 16 '16 at 02:43 PM

Thanks for taking the time to answer my question. much appreciated!

(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