So I’ve set up all my interactable actors the same way and they all work perfectly, except one. I have a stick in Lvl 2, if you pick it up as soon as you spawn in, it works perfectly. However, if you click around the room first and then find and interact with the stick now it magically doesn’t work. This makes no sense to me as none of my other pickup-able actors do this. I’m also not sure what could be causing this or a way to get around it. Any Ideas or insight would be greatly appreciated! Thank you so much!
Did you try to debug it? The editor is full of helpful tools.
click around the room first and then find and interact with the stick
Start with the humble Print String
, what are you really interacting with when the magic happens?
I’m sorry but I don’t know where I’d put debug. Just in my player character blueprint? I’ll attach a photo of what I have currently in my BP_FirstPersonCharacter to make the stick interactable. As I said before, all my interactable actors have been set up the exact same way and they all work fine so I really have no idea what could be causing this. I also am unsure where I’d put debug since it works sometimes (aka if you pick it up as the very first thing you do).
- you
DoOnce
and never reset it - you do not need it - the class is not selected in the overlap node - select the desired class
- instead of
Triggered
, useStarted
- it’s a bit strange to use an interface for something that explicit, why bother and not just grab the stick directly
- you never break the loop, if there’s a lot of sticks in one location, you’ll grab them all - this may be intentional, though
If I’m honest, I watched a youtube video weeks ago on how to make a door work i think it was and since then I’ve just taken that script and changed it for everything I’ve made. I have a separate BPI for everything that’s interactable. Like the stick has its own BPI and the door etc. instead of just having one BPI called Interact. Which i know is technically wrong because I didn’t do it this way in previous projects but i couldn’t remember how to do that and at this point i have pretty much a full game built so I don’t know if I want the headache of trying to change it all back. I may have goofed myself with how I have things setup
For interaction you typically want a single system that works with all interactable actors. A single BPI, potentially a custom collision (obj type or profile), maybe even Actor tags and/or gameplay tags.
It’s slightly more tedious to setup, but once it’s done, adding new interactable assets is easy.