First of all great content. I have followed your code to the tee however no mater where the player is I can still hit the f key and the door opens/closes
@TitusBray Жыл бұрын
There's a second boolean check in the B_Door_Switch blueprint class that uses a sphere collider trigger zone. As the player overlaps that trigger zone the "near switch" boolean marks true and as the player leaves the trigger zone overlap the boolean marks false. The tick function runs every frame and checks both "near switch" and "key pressed" boolean checks and if BOTH are true then it runs the code so my guess is... a) the end overlap is not turning "near switch" boolean to FALSE b) the booleans are reversed and you may need to add the "NOT" boolean node before the branch check (i.e. can you open the door away from the switch but not while next to the switch)
@elganzandere11 ай бұрын
Why aren't you using Blueprint Interfaces + *does implement interface* validation?
@TitusBray11 ай бұрын
I do in a later video when I setup a camera system to close doors and trigger alarms, a BPI would certainly work well here too, but wanted to keep it super simple.