From eb6bc6e3491bd78b6733d4ca564cf5b0b790ff79 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Wed, 26 Apr 2023 09:46:57 +0100 Subject: [PATCH] mobs ordered to "stand", fix knockback --- api.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api.lua b/api.lua index 5475a1d..0fdc2c6 100644 --- a/api.lua +++ b/api.lua @@ -3454,6 +3454,11 @@ function mob_class:on_step(dtime, moveresult) self.pause_timer = self.pause_timer - dtime return + + elseif self.order == "stand" then + + self:set_velocity(0) + self:set_animation("stand", true) end -- run custom function (defined in mob lua file) - when false skip going any further