Make dying mobs non-pointable
parent
28aead0a60
commit
f00dc21252
|
@ -674,6 +674,9 @@ local check_for_death = function(self, cause, cmi_cause)
|
||||||
self.blinktimer = 0
|
self.blinktimer = 0
|
||||||
self.passive = true
|
self.passive = true
|
||||||
self.state = "die"
|
self.state = "die"
|
||||||
|
self.object:set_properties({
|
||||||
|
pointable = false,
|
||||||
|
})
|
||||||
set_velocity(self, 0)
|
set_velocity(self, 0)
|
||||||
set_animation(self, "die")
|
set_animation(self, "die")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue