1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-25 02:00:21 +01:00

mobs ordered to "stand", fix knockback

This commit is contained in:
tenplus1 2023-04-26 09:46:57 +01:00
parent ce9c30949c
commit eb6bc6e349

View File

@ -3454,6 +3454,11 @@ function mob_class:on_step(dtime, moveresult)
self.pause_timer = self.pause_timer - dtime self.pause_timer = self.pause_timer - dtime
return return
elseif self.order == "stand" then
self:set_velocity(0)
self:set_animation("stand", true)
end end
-- run custom function (defined in mob lua file) - when false skip going any further -- run custom function (defined in mob lua file) - when false skip going any further