Adam Mckay has attached himself to direct an untitled comedy written by Ben Schwartz, with Seth Rogen attached to star.

Gary Sanchez Productions, Point Grey Pictures and Good Universe preemptively purchased the pitch from the actor-writer (“Parks and Recreation,” “House of Lies”), who will also co-star in the film.

Point Grey principals Rogen, Evan Goldberg and James Weaver will produce alongside Gary Sanchez’s Will Ferrell, McKay and Kevin Messick. Good Universe’s Nathan Kahane and Joe Drake will executive produce with Erin Westerman overseeing for the company.

“Evan and Seth have been doing amazing things and we’re so excited to work with them,” said McKay. “Ben, not so much. Most of my problems with him are personal ones, but I have to give it up … he did come up with a great idea.”

Schwartz, who is repped by WME, Ginsburg Daniels and Haven Entertainment, previously sold pitches “No Heart’s Club” and “Would You Rather” to Universal.

“Every two thousand years the planets of our galaxy align in a perfect line that funnels the cosmic energies of the universe to flow into one perfect comedic collaboration. The time is now. This is that project. Nothing will ever be the same,” said Rogen, with Goldberg adding, “McKay and Schwartz are reeeeeeal smart, well-endowed guys and we couldn’t be more excited to be working with them.”

Rogen is repped by UTA and McKay is repped by WME. Both are also repped by Mosaic.