Auto remove outdated turret entities
This commit is contained in:
parent
a310d0338a
commit
347a8807bf
2 changed files with 18 additions and 3 deletions
|
@ -2,6 +2,10 @@ local modpath = minetest.get_modpath(minetest.get_current_modname())
|
|||
|
||||
dofile(modpath.."/api.lua")
|
||||
|
||||
|
||||
|
||||
|
||||
minetest.register_entity("shooter:turret_entity", {
|
||||
visual = "sprite",
|
||||
textures = {"blank.png"},
|
||||
on_activate = function(self)
|
||||
self.object:remove()
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue