Goodday!
How do I check if a picked up item is the same as a BP item?
Goodday!
How do I check if a picked up item is the same as a BP item?
Hi Doeglas,
You can use the “Cast” node to try and cast to your BP - if it is the correct class you can branch off that node.
What would I put in “Object”?
I had this before I posted.
Just to clarify - are you wanting to know if it is the exact item, or just an item of that class? That code should work if testing for the exact time.
I want to see if the Key BP is the picked up item (Item Actor)
Ok, all you need to do is remove the “== ItemActor” - the cast will only be true when it’s a Key Class 1.
If you’re wanting to test if the picked up item is the same class as whatever ItemActor is at the time - you can call “GetClass” on both objects and check if they ==.
Totally works. Thank you!