In dogfights, all the pilots of all the craft which participated in a kill get experience. There is no experience if there is no kill.