I've got a trouble with it as you can guess
1
2
3
2
3
if object(1,"exists") then object(1,"x")=object(1,"x")+1 end
if object(1,"exists") then object(1,"x")=object(1,"x")+1 end
5=5+1
function moveObject(old_x, old_y, new_x, new_y) 	old_id = objectat(old_x, old_y) 	if old_id == 0 then 		return 0 		-- Returns 0 when there's no object at < old > position. 	end 	ob_type = object(old_id, "type") 	ob_rot = object(old_id, "rot") 	ob_mode = object(old_id, "mode") 	ob_team = object(old_id, "team") 	ob_player = object(old_id, "player") 	ob_health = object(old_id, "health") 	killobject(old_id) 	spawnobject(ob_type, new_x, new_y, ob_rot, ob_mode, ob_team, ob_player) 	new_id = objectat(new_x, new_y) 	damageobject(new_id, object(new_id, "health") - ob_health, 0) 	-- Suggested by VADemon 	return new_id 	-- Returns the ID of the new object, just in case. end
moveObject(x, y, x+1, y)
damageobject(new_id, object(new_id, "health") - ob_health, 0)