I'm writing a Star Wars fanfiction because I wanted to practice my writing on something I love, and I decided to make a character named Alexander Ray Rullero. He's not the main character, as in he is not the character you will be following most of the time. He's the secondary main character and he will be someone who you'll probably dislike in the beginning. He's a pessimist and doesn't believe in what he's fighting for. He will always try and weasel his way out of anything dangerous assignments and will criticize the idealistic primary main character for their hopes of a better future. He dislikes the main character because he believes their optimism is out of place in a battle as futile as the one that is the Rebels against the Empire. At least, Ray thinks the rebel's fight against the Empire is futile.
Like, the main character says "The Imperial fleet won't notice us, right? I mean, we're hidden in the most tightly packed asteroid belt I've ever seen! We'll make it out of here without a scratch!", and Ray would reply with "They have radar technology, and when they do find us, those star destroyers will do much more than just "Scratch" this lump of glorified scrap metal that we call a ship".
As you can see, it doesn't exactly seem like he wants to be a part of the Rebel Alliance. Though Ray will grow as a character, gradually becoming less pessimistic, more supportive, and eventually he'll come to the point where he thinks the Rebel cause is something worth fighting for. He'd even encourage the main character to keep fighting the Empire when they think that all is lost at one point. But that's later, and I intended to make Ray a part of the Alliance off the bat.
I feel as if I've written myself into a corner here. I want him around so that he can tell the main character that what their fighting for his hopeless, only to encourage the main character to keep fighting and never give up hope when the main character loses all optimism and nearly gives up.
If anyone could give me any ideas as to how I can make this character a part of the Rebel Alliance without it seeming as if I've forced him to be there, then that would be greatly appreciated.