Hello all !
That seemed so easy when I thought about it, but I can’t have a message like “The door is locked” when the player doesn’t have the good key. I have a specific key for each of my two closed door, but I would first try to have the message if the player doesn’t have any key on him.
I first created a boolean on my thirdperson character that I named “Have Key”. Then when the player pick up a key, I set it to 1. And on the locked door blueprint, I put a branch with my variable in condition. And of course it doesn’t work, I guess I’m wrong on the branch thing. The first image is the Key blueprint, and the second is for the door.
So that’s for the basic thing. And as a bonus, as I said, I have an enum for my two keys, each opening a specific door. So how could I get the “Door locked” message if I have the wrong key ?
Thanks in advance, and have a great day !