I wanna ask you a simple question.
I m building an NPC that will have a few packages.
He will wander, he will sleep 8 hours in his house, he will eat 2 hours in his house, and he will drink 3 times per day while wandering.
I have managed to make him lock the doors when he goes to sleep.
I'd like him to lock the doors when he leaves the house too (when h wanders).
Actually the house will be unlocked only when he is eating (he is incide and accepts visitors)
Can you tell me how shall i make the Lock/Unlock checks wander package, so he will lock the house when he gets out?