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"

Object reference causing error

Hello, I'm making an enemy that, when killed adds health back to the player. When I cast to the player, it asks for an "Object" as well, but everything I connect causes an error.

What is the proper node to use? alt text


Product Version: UE 4.18
question.jpg (425.2 kB)
more ▼

asked Mar 17 '18 at 05:24 PM in Blueprint Scripting

avatar image

7 2 3 3

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

1 answer: sort voted first

You must have made your "BP_Player" from a different blueprint class. Check and see what its parent class is at the top right corner of the BP_Player editor. If it is NOT character, which that's what this error means you can do one of two things.

  1. Click the class settings tab in the BP editor and change the Parent class (this is on the right hand side details menu at the top)


  1. Find out what class your BP_Player is and get a reference to that class, so if it is pawn you would "get player pawn" instead of "get player character" etc

more ▼

answered Mar 17 '18 at 06:10 PM

avatar image

Nebula Games Inc
5.4k 28 9 14

avatar image mall_one Mar 17 '18 at 06:55 PM

"get player pawn" worked like a charm. Thanks!

avatar image Nebula Games Inc Mar 17 '18 at 07:10 PM

Awesome! Yea, gotta watch out for those things, can be tricky like that. Glad it's working. Can you mark this as the answer to close this question out? 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