Hello. I’m a confused UE5.4 newbie trying to learn how to create a basic interaction interface in first person mode, and I would be grateful if anyone can tell me why what I’m doing doesn’t work.
These screenshots show the relevant parts of my first person character event graph.
When I test this, precisely nothing happens when I move right up to the door and press ‘E’. Obviously, I’m missing something, so thanks for reading and even more thanks if you can tell me what it is.
second screenshot: you use for each with break but you never use break. If so you can just use regular for each loop.
second screenshot: option A plays from start and option B plays backwards (not from end). You should just change A for just play so it will play forward no matter current position as you do in B.
put some print log on the output of your enhanced input action (started) to be sure your input is working
put some print log on the output of your event interact event implementation to be sure your interface reponse is working
I have removed the triggers from IMC_Default and IA_Interact. I have also changed EnhancedInputAction IA_Interact event in my first person character so that the wire extends from “Started” instead of “Triggered.”
In BP_DoorInterface I have attached my BPI_Interact interface as an implemented interface. I cannot add anything to inherited interfaces. I don’t know if that’s relevant.
I added a print string output after Add Mapping Context and I see that output as soon as I begin testing. So that seems to be good. (And that’s a good habit you’ve taught me. Cheers.)
When I add the ‘T’ code, the input works but Actors overlapping is zero even when I’m right next to the door.
The only code I have that checks for overlapping actors is in the first person character blueprint. My door blueprint has a decent sized collision box. From your final comments, I’m thinking that this might be part of the issue but I’m not sure what I need to add.
Edit: Generate overlap events wasn’t enabled for my first person charcter but I’ve fixed that. OverlappingActors now returns 1 when I’m next to the door. Which is progress.
Edit 2: Blimey, I’ve found it! So, I’m using first person perspective but I also have the third person starter content loaded (because I wanted the third person anim blueprints). Anyway, I went back to my EnhancedInputAction IA_Interact event on the first person character blueprint and deleted it. When I went to re-add it, I noticed there were two versions of it. One for third person, one for first. I re-added the first person version and my interaction worked. The event nodes look identical on a blueprint. But it works now. Thank you very much for your help!