As a general rule I think gain
Just for taking part.
More if activly take part as in involved in combat call fire mission.
Even more if they kill something.
So the likes of trucks slowly gain experience if they survive but the guys doing the killing gain it faster.