Bug: Locker Interaction Glitch Allows Remote Access To Locker After Death. how do I fix it?

I have a script here to hide in a locker from a monster. If the monster is in front of the safe and I get out, I die. when I then respawn I can interact with that vault from anywhere in the map and can no longer interact with anything else.

1 Like

Are you destroying the old player?

Yeah it destroys the player on death

1 Like

Because if it’s still there and still overlapping, then this will be the effect.

Try pressing F8 after dying, and take a look in the world outliner to see how many players there are.

Also, should that delay line connect to the ‘disable input’ node maybe?

this is what the player death script looks like right now but yeah the old player destroys on death,
and the delay line to enable input should be like that yes.

1 Like

Maybe do the ‘set game paused’ right at the end. Unless this actor is set to tick when paused, it won’t execute the destroy node.

I tried it, but unfortunately it didn’t work.

1 Like

I fixed all of the errors now, but there is a bug: when I die at the same time leaving the locker and respawn again, I can’t interact with any other item than a locker.

1 Like

Yes, not exactly sure why, but it will be a code bug ( or feature ), not the engine in this case :wink: