mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +01:00
mobs ordered to "stand", fix knockback
This commit is contained in:
parent
ce9c30949c
commit
eb6bc6e349
5
api.lua
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user