Mine
public lua v1 · immutable-- small entity wrapperlocal m = {}function m:spawn () _EntSpawn(self.ent)endfunction m:getpos () return _EntGetPos(self.ent)end-- function to wrap entityfunction GetEntObj (ent) local o = {} local mt = {} mt.__index = m setmetatable(o, mt) o.ent = ent return oend