This mod simply adds a hotkey (default Enter) that lets players knock on the door to an NPC's room, playing a knock sound (default "axchop") a set number of times (default 3). If the NPC is in the room, they will walk to the door, open it, and stand in the doorway for a specified time (default 200 game ticks), then return to their starting point.
NPCs will not answer the door if they are already moving somewhere.
If the room is owned by more than one NPC, the mod will check for all owners and choose randomly from those in the room.
If you have the Close Doors mod installed, the NPC will close the door again before returning to their starting point.
This mod doesn't override the "You are not good enough friends with x" text that prevents entry into NPCs' rooms.
Config
You can change the following in the config:
Knock button
Knock sound
Knock sound times
Knock sound interval
Answer delay in game ticks
Wait time in game ticks
Notes
The mod uses a simple tile-checking algorithm starting with the tile behind the door to determine who is in the room.
The mod doesn't restart any animation the NPC might have been performing before answering the door, I might look into how that works at some point.
5e05e750-9338-4a8d-9a88-8ec65d1d97bf
Adds two fully-functional doors as craftable, buyable furniture. Lets modders create similar doors, as well as lockable door furniture with keys and key rings.
Adds two fully-functional doors as craftable, buyable furniture. Lets modders create similar doors, as well as lockable door furniture with keys and key rings.