From ff070e90b6e5372792e843e0a3551975cfbff4fd Mon Sep 17 00:00:00 2001 From: 08draven Date: Tue, 5 Nov 2024 07:29:38 -0500 Subject: [PATCH] NPC menu easy exit --- common/player.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/player.js b/common/player.js index 8d288fb..51ed313 100644 --- a/common/player.js +++ b/common/player.js @@ -66,6 +66,8 @@ class Player extends Entity { if (target.type == 'NPC' && velness > 0.2 && this.ticks >= 15) { this.isMenu = true; + let that = this; + setTimeout(() => that.isMenu = false, 8000); this.rot = 1.2; }