JohnnySix You example is close to what I need but still find bugs in it.
I played the game you are building and the NPC fell in the hole even though the main player didn't.
Also, the NPC shouldn't die because it has no interaction in the game.
Thanks anyways. I will keep trying.