Loading

Paste #pwzuepjb9

  1. function World:destroyEntity(entity)
  2.   for i, e in ipairs(self.entities) do
  3.     if e == entity then
  4.       table.remove(self.entities, i)
  5.       break
  6.     end
  7.   end
  8.   entity:onDestroy()
  9. end

Comments