on_step = function(self, dtime) local obj = self.object local ent = self.object:get_luaentity() if self.x then print(self.x) elseif obj.x then print(obj.x) elseif ent.x then print(ent.x) end end,