 Resident Evil : Afterlife is a 2010 3D science fiction action horror film written and directed by Paul W. S. Anderson . It stars Milla Jovovich , Ali Larter , Kim Coates , Shawn Roberts , Spencer Locke , Boris Kodjoe , and Wentworth Miller . The film marks Anderson 's second time to direct in the series , the first being the first film in the series, Resident Evil . It is also the fourth film in the series . The film is based on the Capcom video game series of the same name . The film is set in a post-apocalyptic world where the human race is on the verge of extinction, and follows