I have created a chest and player inventory. When opening/interacting with the chest, it brings up the inventory screen with both the player inventory, and the chest inventory on it. Items can be deposited/moved around freely between the two inventories. Problem is, upon closing the inventory, the inventory can then be opened anywhere with the interact button “E”. Not just while in front of the chest. Any help with this would be greatly appreciated. I only want the screen to come up while in interact range of the chest.
to guess, you get a Ref to the inventory on interact and dont clear that Ref when you close it
so for example there where do you Set/Clear your LookAtActor
Are you doing any check to make sure the player is in the vicinity of chest? Usually with the ‘press E’ system, that would be overlap.
Here is my interactionTrace
It hasnt been an issue until now as the only other inventory screen is player inventory.
Ok, so you’re not clearing the ‘look at actor’, I would assume
You need to do this trace when you press E, as well.
I think that’s what @Auran131 said.
I am putting this together off of a tutorial, I am assuming that the person whom made the tutorial didnt either xD Would you be so kind as to clue me in on where exactly I need to do that? Cause, I am just learning all this stuff lol
There’s a lot of dodgy tutorials out there
Why are you keeping a reference to it?
You can just trace when the E happens, no?
Its a tutorial by Ryan Laley, and its been decent up until this xD
Im not sure how to do that for 3rd person. The tutorial is for 1st person and I am kind of converting it as I go, everything has worked so far, until, this issue popped up xD
I seem to recall someone else having exactly this problem, actually.
When E is pressed, do the trace and interact. Remove the reference, for now…
I think the only reason you need a ref, is to highlight the actor. But I don’t think you’re doing that? ( I haven’t looked closely ).
Ill drop the reference off see what it does.
I think the part i am having trouble with, is where am I removing the ref from? O.o
Ok, scratch that idea.
I think your problem is here
Put a print string here to check the look at ref is getting cleared when you think it should be
Do you think the SET-Look At Actor above that branch there is whats keeping it called?
Debug it with a print node, and you’ll find out…
Im trying to remember how to do that, I just started playing with this stuff like 2 days ago x.x