NPC menu easy exit
This commit is contained in:
parent
0b040d409a
commit
988044dc7f
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ class Player extends Entity {
|
||||||
|
|
||||||
if (target.type == 'NPC' && velness > 0.2 && this.ticks >= 15) {
|
if (target.type == 'NPC' && velness > 0.2 && this.ticks >= 15) {
|
||||||
this.isMenu = true;
|
this.isMenu = true;
|
||||||
|
let that = this;
|
||||||
|
setTimeout(() => that.isMenu = false, 8000);
|
||||||
this.rot = 1.2;
|
this.rot = 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue