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?

Thanks

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)

OR

  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

“get player pawn” worked like a charm. Thanks!

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