Yeah, carpenter ants aren't really the problem - they are a symptom. They like soft wood that is easy to work with, meaning moist and/or rotted. And like nearly all the larger ants, they love termite eggs for lunch. If you are seeing carpenter ants, you most likely have a prior problem and they are taking advantage of it. In an RV, it is usually leak damage that is either current (wet wood) or past (dry rot). Termites, not so common.
2004 American Tradition; 2014 Buick LaCRosse
Homebase in the Ocala Nat'l Forest near Ocala, FL