mobs ordered to "stand", fix knockback

This commit is contained in:
tenplus1 2023-04-26 09:46:57 +01:00
parent ce9c30949c
commit eb6bc6e349
1 changed files with 5 additions and 0 deletions

View File

@ -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