have sheep spawn in mixed herds

This commit is contained in:
tenplus1
2022-10-11 11:09:19 +01:00
parent be80ec3269
commit ca6ff68c3a
2 changed files with 38 additions and 6 deletions

View File

@ -12,7 +12,7 @@ stepheight = 0.6,
hp_min = 1,
hp_max = 4,
armor = 200,
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
visual = "mesh",
mesh = "mobs_bunny.b3d",
drawtype = "front",
@ -80,6 +80,7 @@ stepheight = 0.6,
return
end
end,
on_spawn = function(self)
local pos = self.object:get_pos() ; pos.y = pos.y - 1
@ -105,6 +106,7 @@ stepheight = 0.6,
return true -- run only once, false/nil runs every activation
end,
attack_type = "dogfight",
damage = 5
})