Galaxy Quest is a well known film released in 1999 known for being somewhat of a parody of Star Trek. The film is largely comedic, but it has concessional dramatic moments.
Jason Nesmith (Tim Allen) is a washed-up actor who makes a living from appearing at science fiction conventions as his old character, Commander Taggart, Commander of the NSEA-Protector. His old castmates hate him for stealing the limelight, but his fans adore him -- including the Thermians, a species of aliens that do not understand that the show was entertainment. Their species is under attack, and they need Commander Taggart to save them from the genocidal General Sarris. Jason Nesmith is arrogant enough to go along for the ride. Die in A Hole