Hello, So here it is, I have a bug and I found the solution but I need someone to show it to me because I can’t figure out how to do it verbally so here is the solution added on my BluePrint which is just below :
You can solve this problem by modifying two branch instructions to receive an OR condition. The first branch that needs it is the one immediately following the first “LineTraceByChannel”, add the boolean variable “inspecting ?”, as well as an OR condition, then branch the inspecting variable and the already existing return value of our LineTrace into the OR conditions that can then return to the branch. Then repeat this process with the next branch statement, which currently only takes the value “ActorHasTag” as a condition. So, in summary, for those interested, the mechanic will now work if the object in front of it is an object to inspect, OR if it is already holding an object.
thank you for your answer and it is true that I may not have been clear enough. To tell you the truth I watched this tutorial: Picking Up And Moving Objects | Inspect Item Part 1 - Unreal Engine 4 Tutorial - YouTube
to make an object inspector system. But when I finished there was a bug and this bug is that of not being able to drop the object after taking it. Then I saw the comments of the video and apparently several people had the same bug as me and one person then gave the solution (the one I put above) to solve this problem but I don’t know how to do it.
So here is one of the solutions reported in the comments of the video:
I realize this is super late but, this is a feature for the script as it was written and not a bug. You can fix this however by setting the first two branches after the first LineTrace to accepting an OR condition, with the other condition being “inspectable?”. So if inspectable is true(player is holding) then it won’t require the linetrace hit.